Subject: | Incorrect error reporting from IO::Socket::INET->new |
HTTP/Server/PSGI.pm line 94:
$self->{listen_sock} ||= $class->new(%args)
or die "failed to listen to port $self->{port}: $!";
This is incorrect - IO::Socket::* subclasses don't necessarily report errors in $!, they use $@ for this purpose. The die should read
or die "failed to listen to port $self->{port}: $@";
(See also https://rt.cpan.org/Ticket/Display.html?id=92834)
--
Paul Evans