Fixed "could not print ..." log warning.
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@74 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
f28c9429a2
commit
eed27e5fb1
4
Changes
4
Changes
@ -1,3 +1,7 @@
|
||||
2002/09/12
|
||||
Fix "Could not print" error message in the TcpServer object. (Thanks
|
||||
to Ross Mueller <ross@visual.com>)
|
||||
|
||||
2002/09/10
|
||||
dnsbl plugin queues lookups in the background upon connect but
|
||||
doesn't block for the results until they are needed, greatly
|
||||
|
@ -33,6 +33,7 @@ sub run {
|
||||
|
||||
sub read_input {
|
||||
my $self = shift;
|
||||
|
||||
my $timeout = $self->config('timeout');
|
||||
alarm $timeout;
|
||||
while (<STDIN>) {
|
||||
@ -50,7 +51,7 @@ sub respond {
|
||||
while (my $msg = shift @messages) {
|
||||
my $line = $code . (@messages?"-":" ").$msg;
|
||||
$self->log(1, "$line");
|
||||
print "$line\r\n" or ($self->log("Could not print [$line]: $!"), return 0);
|
||||
print "$line\r\n" or ($self->log(1, "Could not print [$line]: $!"), return 0);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user