[Python-Dev] Adding timeout to socket.py and httplib.py - Updated

Facundo Batista facundo at taniquetil.com.ar
Wed Mar 21 17:31:45 CET 2007

I updated the patch #1676823, reflecting discussion here:

- The function name changed, now it's _create_connection(). Its 
signature also changed: now, timeout is mandatorily named.

- HTTPConnection has the posibility to call timeout with a number, and
also with None. In both cases, it updates sock.timeout (changing
effectively the default timeout).

Docs and tests cases are also updated (note: now there's no doc in
libsocket.tex, as this function is now private).


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

More information about the Python-Dev mailing list