Skip Menu |

This queue is for tickets about the IO CPAN distribution.

Report information
The Basics
Id: 63052
Status: resolved
Priority: 0/
Queue: IO

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

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



Subject: IO::Socket->connected raises warning if socket doesn't yet have a filehandle
Create a new IO::Socket without yet a filehandle inside it. ->connected accessor throws a warning: getpeername() on unopened socket GEN1 at /usr/lib/perl/5.10/IO/Socket.pm line 257. This accessor can be easily fixed by testing if it's even open first; perhaps by checking defined fileno($sock) and getpeername($sock); -- Paul Evans
Ticket migrated to github as https://github.com/toddr/IO/issues/16