Subject: | Enhancement/OpenBSD-Workaround for IO::Socket::INET6 (patch included) |
Date: | Tue, 16 Feb 2010 13:55:43 +0100 |
To: | bug-IO-Socket-INET6 [...] rt.cpan.org |
From: | Steffen Ullrich <Steffen_Ullrich [...] genua.de> |
Hi,
I've just noticed, that OpenBSD getaddrinfo behaves strange, in that
getaddrinfo( ipv4,AF_INET6 ) causes a DNS lookup.
This call will happen in the FAMILY_LOOP in sub configure if you do
just a simple IO::Socket::INET6->new('ipv4:port'), which is a common
scenario.
Attached patch works around the problem by limiting the family if
LocalAddr or PeerAddr are IPs. It's fairly simple and I've tested
it on OpenBSD. Alle test from 2.57 run with this patch, except
pod-coverage.t which fails already in plain 2.57.
Keep up the good work,
Regards,
Steffen
--
GeNUA Gesellschaft für Netzwerk - und Unix-Administration mbH
Domagkstr. 7, D-85551 Kirchheim. http://www.genua.de
Tel: (089) 99 19 50-0, Fax: (089) 99 10 50 - 999
Geschäftsführer: Dr. Magnus Harlander, Dr. Michaela Harlander,
Bernhard Schneck. Amtsgericht München HRB 98238
Message body is not shown because sender requested not to inline it.