Commit bd2a6171 authored by Vincent Pelletier's avatar Vincent Pelletier

Even if a handler raises, the connection might still contain pending packets....

Even if a handler raises, the connection might still contain pending packets. So it should not prevent appending the connection to the list.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1221 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 8b74febf
...@@ -251,11 +251,13 @@ class EpollEventManager(object): ...@@ -251,11 +251,13 @@ class EpollEventManager(object):
# See if there is anything to process # See if there is anything to process
to_process = self._getPendingConnection() to_process = self._getPendingConnection()
if to_process is not None: if to_process is not None:
# Process try:
to_process.process() # Process
# ...and requeue if there are pending messages to_process.process()
if to_process.hasPendingMessages(): finally:
self._addPendingConnection(to_process) # ...and requeue if there are pending messages
if to_process.hasPendingMessages():
self._addPendingConnection(to_process)
def _poll(self, timeout = 1): def _poll(self, timeout = 1):
rlist, wlist = self.epoll.poll(timeout) rlist, wlist = self.epoll.poll(timeout)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment