From f0aa363c3014868d9ed508f0ae186ac01a53a9dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Wisniewski?= <gregory@nexedi.com> Date: Fri, 5 Mar 2010 21:23:30 +0000 Subject: [PATCH] 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 --- neo/connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neo/connection.py b/neo/connection.py index 41f17b27..2089e907 100644 --- a/neo/connection.py +++ b/neo/connection.py @@ -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): -- 2.30.9