Listen => SOMAXCONN,
LocalPort => $port,
ReuseAddr => 1,
+ Timeout => .1,
Type => SOCK_STREAM,
);
printf( "You can connect to your server at %s\n", $base );
- while ( my $connection = $daemon->accept ) {
+ while ( 1 ) {
+
+ my $connection = $daemon->accept or next;
while ( my $request = $connection->get_request ) {