[Neo-report] r2760 jm - /trunk/neo/lib/event.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri May 27 18:52:51 CEST 2011


Author: jm
Date: Fri May 27 18:52:51 2011
New Revision: 2760

Log:
poll: data may be received when processing exception list

For the moment, this only fixes a performance issue because in the worst case,
subsequent pings (every 6 seconds) would make _poll() check in the connection
has any pending message (while processing 'rlist').

Modified:
    trunk/neo/lib/event.py

Modified: trunk/neo/lib/event.py
==============================================================================
--- trunk/neo/lib/event.py [iso-8859-1] (original)
+++ trunk/neo/lib/event.py [iso-8859-1] Fri May 27 18:52:51 2011
@@ -147,6 +147,8 @@ class EpollEventManager(object):
                     conn.readable()
                 finally:
                     conn.unlock()
+            if conn.hasPendingMessages():
+                self._addPendingConnection(conn)
 
         t = time()
         for conn in self.connection_dict.values():




More information about the Neo-report mailing list