in reply to Re^4: Strange blocking issue with HTTP::Daemon
in thread Strange blocking issue with HTTP::Daemon
That is what its programmed to do. See while condition while (my $c = $d->accept) { accept, like every function can fail, and once it fails, it exits the loop and your program ends.
If you want to know why it ended, you'll have to check $!/$^E or poke around your HTTP::Daemon instance, maybe turn on $HTTP::Daemon::DEBUG...
or since connections can be reset for any reason, simply handle the error by restarting the accept loop.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Strange blocking issue with HTTP::Daemon
by isync (Hermit) on Aug 12, 2010 at 10:07 UTC | |
by Anonymous Monk on Nov 21, 2010 at 15:06 UTC |