Commit 6e45cf77 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix handler, 3rd try: do not call EventHandler.packetReceived since it will...

Fix handler, 3rd try: do not call EventHandler.packetReceived since it will call self.dispatch instead of going through Dispatcher instance.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@273 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 4971ebc8
......@@ -43,7 +43,8 @@ class ClientEventHandler(EventHandler):
def packetReceived(self, conn, packet):
"""Redirect all received packet to dispatcher thread."""
EventHandler.packetReceived(self, conn, packet)
logging.debug('packet %d:%x received from %s:%d',
packet.getId(), packet.getType(), *(conn.getAddress()))
self.dispatcher.dispatch(conn, packet)
def _dealWithStorageFailure(self, conn, node, state):
......
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