socket read timeout

Steve Holden steve at holdenweb.com
Tue Mar 27 09:48:25 EDT 2007


Jarek Zgoda wrote:
> hg napisał(a):
> 
>> I am looking for the most efficient / cleanest way to implement a socket
>> read with timeout (Windows mainly but would be great if the same code
>> worked under *nix)
> 
> Did you see http://www.timo-tasi.org/python/timeoutsocket.py ?
> 
Note that since 2.4, I believe, sockets in the standard library allow 
you to specify a timeout parameter.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb     http://del.icio.us/steve.holden
Recent Ramblings       http://holdenweb.blogspot.com




More information about the Python-list mailing list