This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Sohaib Ahmad
Recipients Sohaib Ahmad, gson, r.david.murray
Date 2016-09-15.06:02:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473919324.73.0.353370830343.issue27973@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you for pointing me towards hg bisect. I got some time to look into it and was able to find the commit that broke this functionality.

A fix from Python 3 was backported in issue "urllib hangs when closing connection" which removed a call to ftp.voidresp(). Without this call the second download using urlretrieve() now fails in 2.7.12.

Issue ID:
http://bugs.python.org/issue26960

Commit ID:
https://hg.python.org/cpython/rev/44d02a5d59fb

voidresp() itself calls getresp(). So issue26960 could be because control never returns from getresp().

In my opinion this commit (101286) should be reverted and getresp() should be updated with some sort of timeout to fix issue26960.
History
Date User Action Args
2016-09-15 06:02:04Sohaib Ahmadsetrecipients: + Sohaib Ahmad, r.david.murray, gson
2016-09-15 06:02:04Sohaib Ahmadsetmessageid: <1473919324.73.0.353370830343.issue27973@psf.upfronthosting.co.za>
2016-09-15 06:02:04Sohaib Ahmadlinkissue27973 messages
2016-09-15 06:02:04Sohaib Ahmadcreate