[Neo-report] r2037 vincent - /trunk/neo/client/app.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Apr 28 17:04:59 CEST 2010
Author: vincent
Date: Wed Apr 28 17:04:56 2010
New Revision: 2037
Log:
Lock connection before handling packet in _handlePacket.
Modified:
trunk/neo/client/app.py
Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Wed Apr 28 17:04:56 2010
@@ -202,7 +202,11 @@
handler = self.primary_handler
else:
raise ValueError, 'Unknown node type: %r' % (node.__class__, )
- handler.dispatch(conn, packet)
+ conn.lock()
+ try:
+ handler.dispatch(conn, packet)
+ finally:
+ conn.unlock()
@profiler_decorator
def _waitAnyMessage(self, block=True):
More information about the Neo-report
mailing list