forwarded 522478 http://rt.cpan.org/Public/Bug/Display.html?id=39550
tags 522478 + fixed-upstream
thanks

On Thu, 16 Apr 2009 08:56:51 +0200, Martin v. Löwis wrote:

> I tracked this down to the resolution of an unspecified local
> address. On some systems, getaddrinfo('',0,0,2,17,1) returns
> 127.0.0.1, then ::1; on other systems, it's vice versa. The order
> apparently depends on /etc/gai.conf; apparently, there was also
> a recent change in the library defaults (to return IPv4 before
> v6).

Thanks for the detailed analysis.

I've now looked further and I think this is upstream bug
http://rt.cpan.org/Public/Bug/Display.html?id=39550
which should be fixed as of 2.55 according to 
http://cpansearch.perl.org/src/SHLOMIF/IO-Socket-INET6-2.56/ChangeLog

I've upgraded libio-socket-inet6-perl locally to 2.56, and it seems
to work: The output of the same test script is now:

$ perl sock.pl
Trying to connect to www.google.com ...
        ... via unspecified ...
                Success!
        ... via IPv6 ...
                Error: IO::Socket::INET6: getaddrinfo: Name or service not known
        ... via IPv4 ...
                Success!
Trying to connect to ipv6.google.com ...
        ... via unspecified ...
                Success!
        ... via IPv6 ...
                Success!
        ... via IPv4 ...
                Error: IO::Socket::INET6: getaddrinfo: Name or service not known
Trying to connect to ftp.at.debian.org ...
        ... via unspecified ...
                Success!
        ... via IPv6 ...
                Success!
        ... via IPv4 ...
                Success!
Trying to connect to www.sixxs.net ...
        ... via unspecified ...
                Success!
        ... via IPv6 ...
                Success!
        ... via IPv4 ...
                Success!


Masahito, could you upgrade the package please?

If you are busy I can offer to do a one-time NMU or to maintain the
package within the Debian Perl Group.

Cheers,
gregor 
-- 
 .''`.   Home: http://info.comodo.priv.at/{,blog/} / GPG Key ID: 0x00F3CFE4
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
   `-    NP: Pat Metheny, B.B. King, Dave Brubeck: Dave Brubeck Quartet / Lover 
M

Attachment: signature.asc
Description: Digital signature

Reply via email to