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
Jérome Perrin
neoppod
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
Hide 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
...
@@ -131,10 +131,15 @@ class EpollEventManager(object):
...
@@ -131,10 +131,15 @@ class EpollEventManager(object):
else
:
else
:
self
.
reader_set
.
discard
(
fd
)
self
.
reader_set
.
discard
(
fd
)
self
.
writer_set
.
discard
(
fd
)
self
.
writer_set
.
discard
(
fd
)
if
close
:
self
.
_closeAppend
(
connector
.
shutdown
())
if
self
.
_closeAcquire
(
0
):
self
.
_closeRelease
()
return
if
close
:
if
close
:
self
.
_closeAppend
(
connector
.
shutdown
())
# The connection is not registered, so do not wait for epoll
if
self
.
_closeAcquire
(
0
):
# to wake up (which may not even happen, and lead to EMFILE).
self
.
_closeRelease
()
connector
.
shutdown
()
()
def
isIdle
(
self
):
def
isIdle
(
self
):
return
not
(
self
.
_pending_processing
or
self
.
writer_set
)
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