socket read timeout

Facundo Batista facundo at taniquetil.com.ar
Wed Mar 28 00:24:49 CEST 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