in reply to Locked threads and tcp timeouts
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Locked threads and tcp timeouts
by menth0l (Monk) on Feb 16, 2012 at 13:19 UTC | |
|