Hello everyone,
Here's a really small patch to prefer 'timeoutsmtpd' over 'timeout' for the connection timeouts for TcpServer. In our migration from qmail, we never added the 'timeout' file, but we had the timeoutsmtpd file. So, prefer that instead. (Our connections weren't timing out which was rather annoying.)
Thanks! -- justin
Index: lib/Qpsmtpd/TcpServer.pm
===================================================================
RCS file: /cvs/public/qpsmtpd/lib/Qpsmtpd/TcpServer.pm,v
retrieving revision 1.12
diff -u -r1.12 TcpServer.pm
--- lib/Qpsmtpd/TcpServer.pm 19 Nov 2004 08:44:24 -0000 1.12
+++ lib/Qpsmtpd/TcpServer.pm 25 Nov 2004 16:58:50 -0000
@@ -52,7 +52,7 @@
sub read_input {
my $self = shift;- my $timeout = $self->config('timeout');
+ my $timeout = $self->config('timeoutsmtpd') or $self->config('timeout');
alarm $timeout;
while (<STDIN>) {
alarm 0;