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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
cf76530c
Commit
cf76530c
authored
Aug 14, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
47da6c8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
go/neo/server/storage.go
go/neo/server/storage.go
+5
-5
No files found.
go/neo/server/storage.go
View file @
cf76530c
...
...
@@ -201,7 +201,7 @@ func (stor *Storage) talkMaster1(ctx context.Context) (err error) {
// every new connection from master means talk over previous connection is done/cancelled.
// XXX check compatibility with py
type
accepted
struct
{
conn
*
Conn
conn
*
neo
.
Conn
err
error
}
acceptq
:=
make
(
chan
accepted
,
1
)
...
...
@@ -244,13 +244,13 @@ loop:
// XXX check for shutdown command
continue
loop
// retry from initializing
case
MnextConn
,
err
:=
<-
acceptq
:
case
a
:=
<-
acceptq
:
lclose
(
ctx
,
Mconn
)
// wakeup/cancel current talk
if
err
!=
nil
{
return
err
if
a
.
err
!=
nil
{
return
a
.
err
}
<-
talkq
Mconn
=
MnextC
onn
Mconn
=
a
.
c
onn
case
<-
ctx
.
Done
()
:
return
ctx
.
Err
()
...
...
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