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





------- Additional Comments From [EMAIL PROTECTED]  2004-11-23 14:00 -------
i just did some more work on my timeout patch and was wanting a little feedback.

basically what i am doing is passing the timeout_child to Message->new() in the
$opts and wrote a function in there to calculate run time.   then, any time an
function completes that had an alarm() on it, i replace the alarm(0) with
alarm($self->{msg}->_get_runtime());   

so instead of setting alarm(0) which will override the alarm that wraps the
check() funciton in /usr/bin/spam, it will set the alarm to ($timeout_child -
$runtime), hence keeping the alarm that wraps the check() functional and 
accurate.

as far as i can tell, there are only a handle of alarmed functions, pyzor,
razor, dcc, and a couple alarms in Dns.pm.

does anyone see anything wrong with this idea before i clean this thing up and
do some testing on it.  without doing this, a check() is only alarmed to
$timeout_child until it hits an alarmed function that sets alarm back to 0. 
this should prevent that.

thanks



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

Reply via email to