Personally, I'd re-cast your main loop as:
while( 1 ) { my $c = $lsn->accept; print "Client connected: $c"; threads->create( \&do_stuff, $c )->detach; undef $c; }
Whether that will make the slightest difference on your platform/versions I cannot test, but I have a hunch it might.
In reply to Re: Bus Error from threading IO::Socket
by BrowserUk
in thread Bus Error from threading IO::Socket
by ewhitt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |