Timeout option in socket constructor is related to connect/accept calls so it's useless for me
See how to set socket recv timeout in architecture independent manner? for how to set the recieve timeout.
trick with eval/$SIG{ALRM}/alarm() don't work on ActiveState Perl (AFAIK ALRM signal is not supported)
alarm *does* work on win32 (since 5.8.0 I think), but it doesn't interrupt reads because of SAFE SIGNALS
Is there any other way?
You could also resort to non-blocking IO. See How to set sockets non-blocking on Windows
In reply to Re: Locked threads and tcp timeouts
by BrowserUk
in thread Locked threads and tcp timeouts
by menth0l
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |