Merge pull request #498 from kunalkushwaha/bug-profiler
closing http connection
This commit is contained in:
commit
11a0c8f8cd
1 changed files with 1 additions and 0 deletions
|
@ -196,6 +196,7 @@ func serveGRPC(ctx gocontext.Context, server *grpc.Server, l net.Listener) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func serveProfiler(ctx gocontext.Context, l net.Listener) {
|
func serveProfiler(ctx gocontext.Context, l net.Listener) {
|
||||||
|
defer l.Close()
|
||||||
if err := http.Serve(l, nil); err != nil {
|
if err := http.Serve(l, nil); err != nil {
|
||||||
log.G(ctx).WithError(err).Fatal("profiler server failure")
|
log.G(ctx).WithError(err).Fatal("profiler server failure")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue