Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Daniel Kahn Gillmor <dkg <at> fifthhorseman.net>
Subject: Bug#659075: [rt.cpan.org #61577] more robust patch to fix un-propagated cached details for IO::Socket objects
Newsgroups: gmane.comp.lang.perl.perl5.porters
Date: Thursday 9th February 2012 17:04:12 UTC (over 4 years ago)
Hi perl porters--

There appears to be a flaw in IO::Socket where some IO::Socket objects
are unable to properly report their socktype, sockdomain, or protocol
(they return undef, even when the underlying socket is sufficiently
initialized to have these properties).

The attached patch has been forwarded to CPAN's #61577 [0] and debian's
#659075 [1], and should address these issues no matter why the cached
details happen to be missing.

I'd be happy to improve the patch somehow if you have any suggestions
(you'll note that there's a FIXME in there because of SO_DOMAIN's
general non-portability -- i'm not sure how you'd generally want to
approach that sort of thing generally within perl, so i've gone for the
narrowly-targeted fix instead of something more intrusive).

I'm not subscribed to perl5-porters, so please CC me with any replies.

Thanks for maintaining Perl!

	--dkg

[0] https://rt.cpan.org/Ticket/Display.html?id=61577
[1] http://bugs.debian.org/659075
 
CD: 3ms