With PollServer, I get several unrecognized commands before the disconnect
from plugins/count_unrecognized_commands kicks in. Several buffered lines are read and processed by Danga::Client::process_read_buf() without checking if the socket was closed. The attached patch seems to fix it. -- Brian Grossman git-svn-id: https://svn.perl.org/qpsmtpd/trunk@571 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
a46a0345d5
commit
8454ed40bc
@ -111,6 +111,7 @@ sub process_read_buf {
|
||||
sub readable {
|
||||
my Danga::Client $self = shift;
|
||||
return 0 if $self->{disable_read} > 0;
|
||||
return 0 if $self->{closed} > 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user