closing http connection
Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
This commit is contained in:
parent
f861817a8e
commit
1191b209ae
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) {
|
||||
defer l.Close()
|
||||
if err := http.Serve(l, nil); err != nil {
|
||||
log.G(ctx).WithError(err).Fatal("profiler server failure")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue