[Python-Dev] Adding socket timeout to urllib2 (original) (raw)

Facundo Batista facundo at taniquetil.com.ar
Mon Mar 5 16:43:43 CET 2007


I studied which modifications I need to make into urllib2 to support a socket timeout.

So, when it gets into the Handlers, how it'll be used? I checked the Handlers, and here is a resume of their 'open' or 'open'-like methods:

So, these are the necessary further modifications in urllib2 beyond those detailed at the beggining of the mail:

Beyond that, I'll also need to:

So, I think that in the name of clarity, I shall first modify ftplib and httplib, add socket_timeout where is necessary, and then add support to that in the more general urllib2.

What do you think? Comments are very appreciated.

Thank you very much!

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



More information about the Python-Dev mailing list