Commit 025d1456 authored by Vincent Pelletier's avatar Vincent Pelletier

Also log ping packets upon handling.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2421 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 0f566515
......@@ -504,6 +504,7 @@ class Connection(BaseConnection):
packet_type = packet.getType()
if packet_type == Packets.Ping:
# Send a pong notification
PACKET_LOGGER.dispatch(self, packet, 'from')
self.answer(Packets.Pong(), packet.getId())
elif packet_type == Packets.Pong:
# Skip PONG packets, its only purpose is refresh the timeout
......
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