Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
6c7942f1
Commit
6c7942f1
authored
Apr 28, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
76f1d42d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
go/neo/connection.go
go/neo/connection.go
+17
-3
No files found.
go/neo/connection.go
View file @
6c7942f1
...
@@ -336,9 +336,23 @@ func (nl *NodeLink) serveRecv() {
...
@@ -336,9 +336,23 @@ func (nl *NodeLink) serveRecv() {
if
nl
.
acceptq
!=
nil
{
if
nl
.
acceptq
!=
nil
{
// we are accepting new incoming connection
// we are accepting new incoming connection
conn
=
nl
.
newConn
(
connId
)
conn
=
nl
.
newConn
(
connId
)
// XXX what if Accept exited because of just recently close(nl.down)?
// -> check nl.down here too ?
select
{
nl
.
acceptq
<-
conn
case
<-
nl
.
down
:
// Accept and loop calling it can exit if shutdown was requested
// if so we are also exiting
nl
.
connMu
.
Unlock
()
// make sure not to leave rx error as nil
nl
.
errMu
.
Lock
()
nl
.
errRecv
=
ErrLinkDown
nl
.
errMu
.
Unlock
()
return
case
nl
.
acceptq
<-
conn
:
// ok
}
}
}
}
}
...
...
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