Welcome to the Monastery | |
PerlMonks |
Re: How do I do a non-blocking accept?by posicat (Initiate) |
on Oct 11, 2004 at 19:54 UTC ( [id://398267]=note: print w/replies, xml ) | Need Help?? |
I spent a few hours and finally found this paramater you can pass to the IO::Socket::INET ... Timeout => 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.
In Section
Seekers of Perl Wisdom
|
|