Commit 376dd9f7 authored by Vincent Pelletier's avatar Vincent Pelletier

Log Pong packets too.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2361 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 3f4c81ac
......@@ -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):
......
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