Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

HTTP-Server-Simple-0.44 tests and undefined $self->host

by Anonymous Monk
on Apr 07, 2011 at 08:40 UTC ( #897977=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub setup_listener {
        my $self = shift;
    ...
            or croak "bind to @{[$self->host||'*']}:@{[$self->port]}: $!";
        listen( HTTPDaemon, SOMAXCONN ) or croak "listen: $!";
    }
    
  2. or download this
        $self->host('localhost') if ! defined $self->host;
        $self->host('localhost') if  $self->host eq '0.0.0.0';
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://897977]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2020-11-29 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?