Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
446029d4
Commit
446029d4
authored
Feb 21, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c4776192
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
go/neo/cmd/neo/misc.go
go/neo/cmd/neo/misc.go
+2
-1
No files found.
go/neo/cmd/neo/misc.go
View file @
446029d4
...
...
@@ -36,6 +36,7 @@ import (
"lab.nexedi.com/kirr/neo/go/xcommon/log"
// for http://.../debug/pprof
_
"net/http/pprof"
)
...
...
@@ -57,7 +58,7 @@ func neoMatch(r io.Reader) bool {
// protocols, passes NEO connections to service and passes HTTP connection to
// default HTTP mux.
//
//
d
efault HTTP mux can be assumed to contain /debug/pprof and the like.
//
D
efault 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
{
l
,
err
:=
net
.
Listen
(
laddr
)
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment