Commit f0aa363c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Send a notification when the hard timeout has expired.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1898 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent cd6f06ca
......@@ -176,7 +176,8 @@ class BaseConnection(object):
elif self._timeout.hardExpired(t):
# critical time reach or pong not received, abort
logging.info('timeout with %s:%d', *(self.getAddress()))
self.close()
self.notify(Packets.Notify('Timeout'))
self.abort()
self.getHandler().timeoutExpired(self)
def lock(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