Commit 446029d4 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c4776192
...@@ -36,6 +36,7 @@ import ( ...@@ -36,6 +36,7 @@ import (
"lab.nexedi.com/kirr/neo/go/xcommon/log" "lab.nexedi.com/kirr/neo/go/xcommon/log"
// for http://.../debug/pprof
_ "net/http/pprof" _ "net/http/pprof"
) )
...@@ -57,7 +58,7 @@ func neoMatch(r io.Reader) bool { ...@@ -57,7 +58,7 @@ func neoMatch(r io.Reader) bool {
// protocols, passes NEO connections to service and passes HTTP connection to // protocols, passes NEO connections to service and passes HTTP connection to
// default HTTP mux. // default HTTP mux.
// //
// default HTTP mux can be assumed to contain /debug/pprof and the like. // Default HTTP mux can be assumed to contain /debug/pprof and the like.
func listenAndServe(ctx context.Context, net xnet.Networker, laddr string, serve func(ctx context.Context, l stdnet.Listener) error) error { func listenAndServe(ctx context.Context, net xnet.Networker, laddr string, serve func(ctx context.Context, l stdnet.Listener) error) error {
l, err := net.Listen(laddr) l, err := net.Listen(laddr)
if err != nil { if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment