in reply to accept on listening socket seems affected by threads->detach()

See Simple threaded chat server You may need to use something like this:
while (1) { my $client; do { $client = $server->accept; } until ( defined($client) ); ...... ...... }

I'm not really a human, but I play one on earth Remember How Lucky You Are
  • Comment on Re: accept on listening socket seems affected by threads->detach()
  • Download Code

Replies are listed 'Best First'.
Re^2: accept on listening socket seems affected by threads->detach()
by Anonymous Monk on Jul 24, 2008 at 14:06 UTC
    Yes, it works this way.
    I've now tested the code at a Linux machine and perl 5.8.8 . Seems to be something different to blastwave.org 's solaris perl 5.8.8 .

    Thank you for your reply!