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
43fdd059
Commit
43fdd059
authored
Mar 17, 2017
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential EMFILE when retrying to connect indefinitely
parent
6f86c773
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
neo/lib/event.py
neo/lib/event.py
+8
-3
No files found.
neo/lib/event.py
View file @
43fdd059
...
...
@@ -135,6 +135,11 @@ class EpollEventManager(object):
self
.
_closeAppend
(
connector
.
shutdown
())
if
self
.
_closeAcquire
(
0
):
self
.
_closeRelease
()
return
if
close
:
# The connection is not registered, so do not wait for epoll
# to wake up (which may not even happen, and lead to EMFILE).
connector
.
shutdown
()()
def
isIdle
(
self
):
return
not
(
self
.
_pending_processing
or
self
.
writer_set
)
...
...
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