Bug#659075: [rt.cpan.org #61577] more robust patch to fix un-propagated cached details for IO::Socket objects

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Feb 9 17:04:12 UTC 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: robustly-refresh-missing-cached-socket-details.patch
Type: text/x-diff
Size: 1264 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20120209/eb3cc79e/attachment.patch>


More information about the Perl-maintainers mailing list