[Neo-report] r2362 vincent - /trunk/neo/connection.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 29 11:37:13 CEST 2010
Author: vincent
Date: Fri Oct 29 11:37:12 2010
New Revision: 2362
Log:
Move emitted packet log to end of function.
This way, when called from "ask", displayed timestamp will be closer to
packet's timeout base timestamp.
Modified:
trunk/neo/connection.py
Modified: trunk/neo/connection.py
==============================================================================
--- trunk/neo/connection.py [iso-8859-1] (original)
+++ trunk/neo/connection.py [iso-8859-1] Fri Oct 29 11:37:12 2010
@@ -599,12 +599,12 @@ class Connection(BaseConnection):
was_empty = not bool(self.write_buf)
- PACKET_LOGGER.dispatch(self, packet, ' to ')
self.write_buf.extend(packet.encode())
if was_empty:
# enable polling for writing.
self.em.addWriter(self)
+ PACKET_LOGGER.dispatch(self, packet, ' to ')
@not_closed
def notify(self, packet):
More information about the Neo-report
mailing list