Skip Menu |

This queue is for tickets about the RPC-Lite CPAN distribution.

Report information
The Basics
Id: 74019
Status: resolved
Worked: 5 min
Priority: 0/
Queue: RPC-Lite

People
Owner: aburke [...] bitflood.org
Requestors: s.barham [...] adinstruments.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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;
Fixed: https://github.com/andyburke/RPC- Lite/commit/1c91e12875445964620a0b5985ccee4191006788