Subject: | Catalyst::Engine::HTTP does not properly report dynamic bind port |
When port value 0 is selected to launch the server, this is interpreted
as a request for a dynamic port (based on availability).
The server does not report the dynamic port. Following is a diff of a
suggested fix:
*** HTTP.pm-orig Sun Aug 17 18:09:45 2008
--- HTTP.pm Sun Aug 17 18:11:33 2008
***************
*** 215,221 ****
or die "Couldn't create daemon: $!";
my $url = "http://$host";
! $url .= ":$port" unless $port == 80;
print "You can connect to your server at $url\n";
--- 215,221 ----
or die "Couldn't create daemon: $!";
my $url = "http://$host";
! $url .= ":" . $daemon->sockport() unless $port == 80;
print "You can connect to your server at $url\n";