remove timeout on disconnection

This commit is contained in:
Michel Oosterhof
2015-11-19 14:54:53 +00:00
parent 1dfece37b4
commit beea231bfa

View File

@@ -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: