http://bugzilla.spamassassin.org/show_bug.cgi?id=3828





------- Additional Comments From [EMAIL PROTECTED]  2004-10-06 08:32 -------
Created an attachment (id=2421)
 --> (http://bugzilla.spamassassin.org/attachment.cgi?id=2421&action=view)
Adds 2 new timeouts to spamd

this patch will add a tcp connect timeout option (--timeout-tcp) which is the
time between when the socket was made and then the first header.   If a client
makes a connection but never sends headers, their connection will close server
side in --timeout-tcp seconds.

after it sees the first header, the --timeout-child kicks in.  if the time it
takes from after it process the header till the time its ready to return
exceeds this timeout, the connection will be closed.



usage... 
-T or --timeout-tcp   = tcp socket timeout before seeing headers.
-t or --timeout-child = child processing timeout after seeing headers.

testing..  just using low values here to demonstrate...

 
[EMAIL PROTECTED] root]# spamd -d -T5 -t10

[EMAIL PROTECTED] root]# telnet localhost 783
Connected to localhost.
Escape character is '^]'.
SPAMD/1.0 79 Timeout: (5 second socket timeout reading input from client)
Connection closed by foreign host.

[EMAIL PROTECTED] root]# telnet localhost 783
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
PROCESS SPAMC/1.1
SPAMD/1.0 79 Timeout: (10 second timeout while trying to PROCESS)
Connection closed by foreign host.

logging timeouts through logmsg shows...

2004-10-04 21:04:24 [6406] i: connection from localhost.localdomain [127.0.0.1]
at port 39424
2004-10-04 21:04:29 [6406] i: timeout: (5 second socket timeout reading input
from client)
2004-10-04 21:04:31 [6407] i: connection from localhost.localdomain [127.0.0.1]
at port 39425
2004-10-04 21:04:45 [6407] i: timeout: (10 second timeout while trying to
PROCESS)


for those of you experiencing this bug, this is a good patch for you until we
can resolve the real issue.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to