Merge pull request #498 from kunalkushwaha/bug-profiler

closing http connection
This commit is contained in:
Phil Estes 2017-02-07 09:44:30 -08:00 committed by GitHub
commit 11a0c8f8cd
1 changed files with 1 additions and 0 deletions

View File

@ -196,6 +196,7 @@ func serveGRPC(ctx gocontext.Context, server *grpc.Server, l net.Listener) {
}
func serveProfiler(ctx gocontext.Context, l net.Listener) {
defer l.Close()
if err := http.Serve(l, nil); err != nil {
log.G(ctx).WithError(err).Fatal("profiler server failure")
}