David Nicol <[EMAIL PROTECTED]> wrote:
> throwing an
>
> alarm $timeoutlength;
>
> into the main event loop is certainly easy enough
In fact it's already there, but as Robert says, there's no
cleanup. Nevertheless I have been using it, under tcpserver,
to limit connection times from one IP address where there's a
buggy server that often forgets to finish sending its data
(though it does eventually get it through after a few retries).
I just stuck
$timeout = 15 if $self->connection->remote_ip eq
'[INSERT OFFENDING IP HERE]';
after this line in Qpsmtpd/SMTP.pm:
my $timeout = $self->config('timeout');
No problems so far.
--
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC