From: Christian Hansen Date: Tue, 29 Mar 2005 16:47:07 +0000 (+0000) Subject: C::E::HTTP fixes X-Git-Tag: 5.7099_04~1656 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=7276682176592974bbbe424ed5ad98bb6051f3e5 C::E::HTTP fixes --- diff --git a/lib/Catalyst/Engine/HTTP.pm b/lib/Catalyst/Engine/HTTP.pm index 35c3c44..37be240 100644 --- a/lib/Catalyst/Engine/HTTP.pm +++ b/lib/Catalyst/Engine/HTTP.pm @@ -47,7 +47,6 @@ sub run { Listen => SOMAXCONN, LocalPort => $port, ReuseAddr => 1, - Timeout => .1, Type => SOCK_STREAM, ); @@ -59,9 +58,7 @@ sub run { printf( "You can connect to your server at %s\n", $base ); - while ( 1 ) { - - my $connection = $daemon->accept or next; + while ( my $connection = $daemon->accept ) { while ( my $request = $connection->get_request ) {