in reply to How do I do a non-blocking accept?
After .1 seconds it times out the accept command and continues on through your loop happily. As an added benefit this helps you prevent race conditions.my $sock = new IO::Socket::INET ( LocalPort => '1401', Proto => 'tcp', Listen => 1, Reuse => 1, Timeout => .1, );
|
|---|