Anders Sandvig <anders.sand...@gmail.com> 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 appears the issue can be fixed by simply adding a call to settimeout() on socket objects returned by socket.create_connection(), but this should of course be verified by appropriate tests. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9641> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com