id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	branch	branch_author	launchpad_bug
1955	a forgotten resetTimeout in twisted.protocols.postfix	quakelee		"I think after sent code to client, daemon should reset timeout. If data source is a big and slow object, getting and sending result to client may consume a lot of time, if you didn't reset the timer, the connection maybe lost before client reply to daemon.

{{{
#!diff
--- postfix.py.orig     Tue Jul 25 00:57:49 2006
+++ postfix.py  Tue Jul 25 01:08:13 2006
@@ -48,6 +48,7 @@
     def sendCode(self, code, message=''):
         ""Send an SMTP-like code with a message.""
         self.sendLine('%3.3d %s' % (code, message or ''))
+        self.resetTimeout()
 
     def lineReceived(self, line):
         self.resetTimeout()
}}}
"	defect	new	low		core			jesstess thijs	branches/postfix-timeout-1955	jesstess	
