[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#667737: libnet-server-perl: no IPv4 server when binding to localhost



On Fri, 06 Apr 2012 14:02:41 +0300, Niko Tyni wrote:

> Unfortunately libnet-server-perl currently only binds an IPv6 socket
> when asked for 'localhost' if localhost is both 127.0.0.1 and ::1 in
> /etc/hosts.  I think this is a bug. Consider a server:
> 
>  # perl -MNet::Server -e 'package S; use base q/Net::Server/; sub process_request { print qq(hello, world!\n) }; S->run(port => 1600, host => q/localhost/)'
>  2012/04/06-13:17:11 S (type Net::Server) starting! pid(3802)
>  Using default listen value of 128
>  Binding to TCP port 1600 on host localhost
>  Group Not Defined.  Defaulting to EGID '1000 20 27 29 119 1000'
>  User Not Defined.  Defaulting to EUID '1000'
> 
> and a client:
> 
>  # grep localhost /etc/hosts
>  127.0.0.1   localhost
>  ::1     localhost ip6-localhost ip6-loopback
> 
>  # telnet 127.0.0.1 1600
>  Trying 127.0.0.1...
>  telnet: Unable to connect to remote host: Connection refused
> 
>  # telnet localhost 1600
>  Trying ::1...
>  Connected to localhost.
>  Escape character is '^]'.
>  hello, world!
>  Connection closed by foreign host.
> 
> I'm cloning a bug about this. It's clearly Debian specific behaviour,
> as the IPv6 support was patched in with 0.99-3. I think it's bad enough
> to be considered release critical, but other pkg-perl folks should feel
> free to downgrade if they disagree.

Ouch, that's indeed nasty.
Could any of our more IPv6-savvy members (dkg? intrigeri?) take a look
at this patch?

Cheers,
gregor
 
-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Die Schmetterlinge: Lied von der menschlichen Gemeinheit

Attachment: signature.asc
Description: Digital signature


Reply to: