Changes by Anders Sandvig :
--
nosy: +asandvig
___
Python tracker
<http://bugs.python.org/issue809163>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Anders Sandvig :
--
nosy: +anders.sandvig
___
Python tracker
<http://bugs.python.org/issue979407>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anders Sandvig added the comment:
socket.create_connection() does in fact set the timeout of the resulting socket
object, so the issue is not an issue after all.
The problems I experienced was a result of sending the timeout as the third
parameter to the HTTPConnection() constructor instead
Anders Sandvig added the comment:
The best (and simplest) solution seems to be option 2).
Affected methods are found to be HTTPConnection.connect() and
HTTPSConnection.connect() in Lib/httplib.py (Lib/http/client.py for 3.x) and
FTP.connect() and FTP.ntransfercmd() in Lib/ftplib.py.
It
New submission from Anders Sandvig :
>From <http://mail.python.org/pipermail/python-dev/2010-July/101266.html>:
Consider the following code for retreieving a web page using httplib:
def get_url(hostname, port, url, timeout=5):
con = httplib.HTTPConnection(hostname, port
Changes by Anders Sandvig :
--
nosy: +anders.sandvig
___
Python tracker
<http://bugs.python.org/issue8595>
___
___
Python-bugs-list mailing list
Unsubscribe: