Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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

by Corion (Pope)
on Apr 07, 2011 at 09:15 UTC ( #897988=note: print w/replies, xml ) Need Help??

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

This is weird. In theory, HTTP::Server::Simple would call ->lookup_localhost, which should fix $host.

There are two bug reports that sound somewhat similar to your problem, but at least one claims that changes similar to yours solved the problem. The tests in H:S:S assume that localhost will resolve (to a local address) - maybe on your machine, this is not the case? This would be very weird, but I'd still check.

Replies are listed 'Best First'.
Re^2: HTTP-Server-Simple-0.44 tests and undefined $self->host
by Anonymous Monk on Apr 07, 2011 at 10:44 UTC

    My knowledge of HTTP::Server::Simple is limited.

    What I can see, is lookup_localhost call by _default_run. This is done first after setup_listener is called.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://897988]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-11-29 11:21 GMT
Find Nodes?
    Voting Booth?

    No recent polls found