Michael P. Soulier
msoulier at digitaltorque.ca
Mon Aug 15 18:17:00 CEST 2005
On 13/08/05 Bryan Olson said:
> The seperate thread-or-process trick should work. Start a deamon
> thread to do the gethostbyname, and have the main thread give up
> on the check if the deamon thread doesn't report (via a lock or
> another socket) within, say, 8 seconds.
Wouldn't an alarm be much simpler than a whole thread just for this?
Michael P. Soulier <msoulier at digitaltorque.ca>
"Those who would give up esential liberty for temporary safety deserve
neither liberty nor safety." --Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
More information about the Python-list