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
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/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


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.