Subject: | Net::DNS::Nameserver doesn't handle client disconnect in loop_once() |
If a client disconnects while Net::DNS::Nameserver is sending data, syswrite
returns 'undef', spewing a lot of warnings to STDOUT in the following:
my $charssent = $sock->syswrite($self->{"_tcp"}{$s}{"outbuffer"});
print "Sent $charssent of $len octets to ",$self->{"_tcp"}{$s}{"peer"},".\n"
if $self->{"Verbose"};
I'm guessing it's enough to just throw a conditional around the lines that
use $charssent, since the connection gets removed correctly once
readfromtcp() is called?
/Kenneth