[Catalyst] Re: test server with -host

Andy Grundman andy at hybridized.org
Tue Jun 19 00:36:51 GMT 2007


On Jun 18, 2007, at 4:10 PM, A. Pagaltzis wrote:

> * Daniel McBrearty <danielmcbrearty at gmail.com> [2007-06-19 00:50]:
>> if I try -host all or -host=all I get:
>>
>> [info] engoi powered by Catalyst 5.7007
>> Use of uninitialized value in string eq at
>> /usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm line  
>> 197.
>> Use of uninitialized value in gethostbyaddr at
>> /usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm line  
>> 202.
>> Use of uninitialized value in subroutine entry at
>> /usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm line  
>> 202.
>> Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at
>> /usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm line  
>> 202.
>>
>> I guess this is really simple, but it's late ... what am I doing  
>> wrong?
>
> Uh, `all` is not a valid IP address. :-)
>
> It looks like the server does bind to all addresses – check with
> `netstat -lpt`, you should see it. But by default the `allowed`
> option in Catalyst::Engine::HTTP::run is set to only permit
> connections from 127.0.0.1, if I’m reading the source right, and
> unfortunately myapp_server.pl provides no way to set a different
> value for that option from the command line.

This restriction is only for the RESTART command, ordinary HTTP  
requests can come in from any address.

And yes, by default it will bind to all IP addresses.



More information about the Catalyst mailing list