Subject: | RPC::Lite::Server doesn't properly drop connections |
Date: | Mon, 16 Jan 2012 10:40:56 +1300 |
To: | <bug-RPC-Lite [...] rt.cpan.org> |
From: | "Sam Barham" <s.barham [...] adinstruments.com> |
In RPC-Lite-0.20, the TCP transport server doesn't properly drop connections
when a client closes. This is because the results from the
$socket->sysread() call in ReadData in TCP.pm aren't being fully examined.
The fix is to change line 70 of TCP.pm from
return undef if $! or !$socket->connected;
to
return undef if $! or !$socket->connected or $totalBytes == 0;