C::E::HTTP fixes
Christian Hansen [Tue, 29 Mar 2005 16:47:07 +0000 (16:47 +0000)]
lib/Catalyst/Engine/HTTP.pm

index 35c3c44..37be240 100644 (file)
@@ -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 ) {