Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirror
sjrpc
Commits
3b25b83c
Commit
3b25b83c
authored
Jan 31, 2011
by
Antoine Millet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIxed bug with client disconnection.
parent
b00b7ee3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
sjrpc/server/simple.py
sjrpc/server/simple.py
+6
-2
No files found.
sjrpc/server/simple.py
View file @
3b25b83c
...
...
@@ -45,8 +45,12 @@ class SimpleRpcServer(ConnectionManager):
conn
=
self
.
_clients
.
get
(
fd
)
self
.
_poll
.
unregister
(
fd
)
if
fd
is
not
None
:
del
self
.
_clients
[
fd
]
conn
.
shutdown
(
callback
=
self
.
_on_disconnect
)
try
:
del
self
.
_clients
[
fd
]
except
KeyError
:
pass
if
conn
is
not
None
:
conn
.
shutdown
(
callback
=
self
.
_on_disconnect
)
def
all_connections
(
self
):
return
set
(
self
.
_clients
.
values
())
...
...
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