[Neo-report] r2361 vincent - /trunk/neo/connection.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Oct 29 11:37:10 CEST 2010


Author: vincent
Date: Fri Oct 29 11:37:10 2010
New Revision: 2361

Log:
Log Pong packets too.

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:10 2010
@@ -498,9 +498,11 @@ class Connection(BaseConnection):
             if packet_type == Packets.Ping:
                 # Send a pong notification
                 self.answer(Packets.Pong(), packet.getId())
-            elif packet_type != Packets.Pong:
+            elif packet_type == Packets.Pong:
                 # Skip PONG packets, its only purpose is refresh the timeout
-                # generated upong ping.
+                # generated upong ping. But still log them.
+                PACKET_LOGGER.dispatch(self, packet, 'from')
+            else:
                 self._queue.append(packet)
 
     def hasPendingMessages(self):





More information about the Neo-report mailing list