Bug#596176: [rt.cpan.org #61200] IPv6 support for HTTP::Server::Simple

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sat Mar 24 06:32:33 UTC 2012


Attached is a a patch for HTTP::Server::Simple that i believe implements
proper IPv6 support without adding any non-core dependencies.  It keeps
the same interface changes as the original patch by Mats (optional
$family argument to new(), new family() method on the object, all
defaulting to AF_INET).

The patch also modifies the test suite to perform IPv4 and IPv6 tests.

I've tested it and it works against perl 5.14 (i think that's Socket
1.94), but it fails against perl 5.10 (Socket 1.82, afaict).  I can't
find the full history of Socket to figure out where the relevant symbols
(Socket::IN6ADDR_ANY and Socket::getaddrinfo) were added.

Maybe you want to also make the "use Socket;" line have a version number
if you know the correct cutoff.

Please let me know if you have any trouble or concerns with it, or if
you need me to modify it some way to consider accepting it.

Regards,

        --dkg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 61200.patch
Type: text/x-diff
Size: 10394 bytes
Desc: add IPv6 support to HTTP::Server::Simple
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120324/05b66bbb/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 965 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120324/05b66bbb/attachment-0001.pgp>


More information about the pkg-perl-maintainers mailing list