in reply to perl 5.8 killed my socket!
The essential problem is that the reaper seems to interrupt the accept loop in perl 5.8, which didn't happen in 5.6.1.
Here is how I handled it in one of my scripts:
REDO: while (my $ns = $server->accept) { # Normal accept loop here. } print "Got an interruption: $!\n"; goto REDO;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl 5.8 killed my socket!
by particle (Vicar) on Dec 11, 2002 at 01:17 UTC | |
by drake50 (Pilgrim) on Dec 11, 2002 at 05:49 UTC | |
by Aristotle (Chancellor) on Dec 11, 2002 at 15:23 UTC |