On Thu, 25 Apr 2002, Theo Van Dinter wrote:

> On Thu, Apr 25, 2002 at 11:31:08AM -0600, Charlie Watts wrote:
> > Is there anything that can be done to -avoid- this?
> >
> > Perhaps wrapping the regex portion of SA in an alarm() timer so that
> > long-running regexes just get exited from?
>
> I vote for "writing correct code the first time", followed by "fixing
> code that wasn't written correctly the first time."  :)
>
> Doing an alarm() and such would side-step the problem, but not actually
> stop the problem from occuring.

How about both: regexes -are- complicated, and folks are likely to write
long-running ones again in the future.

It could log "long-running test abandoned" or something to the logs, it
would make finding problems much faster, too.

-- 
Charlie Watts
[EMAIL PROTECTED]
Frontier Internet, Inc.
http://www.frontier.net/


_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to