socket read timeout

Facundo Batista facundo at taniquetil.com.ar
Tue Mar 27 18:24:49 EDT 2007


hg wrote:

> Do you mean use select ?

No, socket's timeout:

>>> import socket
>>> s = socket.socket()
>>> s.settimeout(5)
>>> ...

Regards, 

-- 
.   Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/





More information about the Python-list mailing list