From beea231bfa55fa6291bcb4f7373d67c215e47e8c Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Thu, 19 Nov 2015 14:54:53 +0000 Subject: [PATCH] remove timeout on disconnection --- cowrie/core/ssh.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cowrie/core/ssh.py b/cowrie/core/ssh.py index d19c63b..3f7a1fa 100644 --- a/cowrie/core/ssh.py +++ b/cowrie/core/ssh.py @@ -365,6 +365,7 @@ class HoneyPotTransport(transport.SSHServerTransport, TimeoutMixin): # this seems to be the only reliable place of catching lost connection def connectionLost(self, reason): + self.setTimeout(None) for i in self.interactors: i.sessionClosed() if self.transport.sessionno in self.factory.sessions: