Skip Menu |

This queue is for tickets about the IO CPAN distribution.

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

Owner: Nobody in particular
Requestors: leonerd-cpan [...]

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
Download (untitled) / with headers
text/plain 344b
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/ 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

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to