in reply to Re: Double Click of Death on Perl Web Server
in thread Double Click of Death on Perl Web Server
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Double Click of Death on Perl Web Server
by Anonymous Monk on Sep 30, 2018 at 16:07 UTC | |
by Anonymous Monk on Oct 03, 2018 at 19:23 UTC |