XP is just a number | |
PerlMonks |
Re^2: Timeouts: Any alternative to alarm in Win32?by salva (Canon) |
on Dec 03, 2008 at 14:18 UTC ( [id://727682]=note: print w/replies, xml ) | Need Help?? |
Establishing the TCP connection and resolving the host name are still done synchronously in your code and the maximum 5s timeout set in the OP may be surpassed.
That's why I was suggesting POE... though, if I recall correctly, there was some limitation on Windows regarding asynchronous TCP connection establishing, so maybe even POE will not be enough.
In Section
Seekers of Perl Wisdom
|
|