while (my $client = $server->accept) { ... } eval { close $client } # autodie in use
This eval doesn't do any good. Outside of the while loop the lexical variable $client isn't declared, so you are trying to close an undefined value, then throw away the error. Both use warnings; and use strict; should complain about that. I guess you want to disconnect within the loop?
In reply to Re^2: Double Click of Death on Perl Web Server
by haj
in thread Double Click of Death on Perl Web Server
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |