[Catalyst] Catalyst::Engine::HTTP::Daemon died

samwyse samwyse at gmail.com
Wed Sep 14 03:07:37 CEST 2005


On 9/11/05, $B at 9=U(B <shengchun at 9speed.com> wrote:
> in my application, running as http-deamon, and sometimes died as:
> 
> Can't call method "timestamp" on an undefined value at
> /usr/local/lib/perl5/site_perl/5.8.6/Catalyst/Engine/HTTP/Daemon.pm line
> 117.
> 
> 
> 115 if ( $client == $daemon ) {
> 116 $client = $daemon->accept;
> 117 $client->timestamp = time;
> 118 $client->blocking(0);
> 119 $select->add($client);
> 120 }

At the risk of reciting the obvious, in line 117, 'client' is
undefined, undoubtably because that was the value returned by
$daemon->accept.  I would look into that method.



More information about the Catalyst mailing list