Skip Menu |

This queue is for tickets about the HTTP-Daemon CPAN distribution.

Report information
The Basics
Id: 83854
Status: resolved
Priority: 0/
Queue: HTTP-Daemon

People
Owner: Nobody in particular
Requestors: omerta13 [...] yandex.ru
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 6.01
Fixed in: (no value)



Subject: HTTP::Daemon->new runs daemon on random port
Distribution: RPC-XML-0.77 Perl version: 5.14.2 OS: Mageia GNU/Linux 2 (x64); kernel 3.3.8 Description: I tried to pass invalid port 65536. HTTP::Daemon->new(LocalPort => 65536) opens connection on random port instead of return undef, because valid ports must be >= 0 and <= 65535. If you pass port "0", HTTP::Daemon->new(LocalPort => 0) also will return ref to daemon object opened on random port. Example: use HTTP::Daemon; my $d = HTTP::Daemon->new(LocalPort => 65536) || die; print "Please contact me at: <URL:", $d->url, ">\n"; Output: Please contact me at: <URL:http://localhost:52712/>
On Sat Mar 09 14:51:07 2013, http://openid.yandex.ru/omerta13/ wrote: Show quoted text
> Distribution: RPC-XML-0.77
Oops. Distribution: HTTP-Daemon-6.01
It seems it's a problem with IO::Socket::INET (I've opened https://rt.perl.org/rt3/Public/Bug/Display.html?id=117107)
Суб Мар 09 15:25:47 2013, http://openid.yandex.ru/omerta13/ писал: Show quoted text
> It seems it's a problem with IO::Socket::INET (I've opened > https://rt.perl.org/rt3/Public/Bug/Display.html?id=117107)
It's not a bug. Please, close it.