Bug#659075: [rt.cpan.org #61577] ->sockdomain and ->socktype undefined on newly ->accept'ed sockets

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Feb 14 18:38:07 UTC 2012


On 02/14/2012 01:17 AM, Father Chrysostomos via RT wrote:

> Is there any chance you could include tests cases, too?

Ah yes, good call.  This prompted me to find a bug in my patch as well
(i was calling getsockname() instead of sockname() on the IO::Socket
object, i have no idea how i missed that the first time through).

A revised patch is attached.

Also attached are three test cases that test unix domain sockets, TCP
sockets, and UDP sockets.  Each fails with the when run against an
unpatched IO::Socket.

With my v2 patch applied to IO::Socket, all tests pass for all three
test cases.

Regards,

	--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: robustly-refresh-missing-cached-socket-details-v2.patch
Type: text/x-diff
Size: 1261 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20120214/3816adcc/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cachepropagate-tcp.t
Type: application/x-troff
Size: 886 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20120214/3816adcc/attachment.t>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cachepropagate-udp.t
Type: application/x-troff
Size: 549 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20120214/3816adcc/attachment-0001.t>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cachepropagate-unix.t
Type: application/x-troff
Size: 1293 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20120214/3816adcc/attachment-0002.t>


More information about the Perl-maintainers mailing list