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 Chris Beaumont
Recipients Chris Beaumont, giampaolo.rodola
Date 2016-05-05.00:25:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462407954.17.0.565805320206.issue26960@psf.upfronthosting.co.za>
In-reply-to
Content
http://bugs.python.org/issue16270 identified an issue with ftpwrapper.endtransfer that causes ftp fetches to hang in certain situations. A fix was applied to python 3. I see the same issue on python 2.7, and the patch from 16270 fixes it. Is there a reason this fix hasn't been backported to 2.7?

To reproduce:

import urllib
url = "ftp://ftp.fu-berlin.de/pub/misc/movies/database/ratings.list.gz"
fp = urllib.urlopen(url)
fp.close()  # hangs
History
Date User Action Args
2016-05-05 00:25:54Chris Beaumontsetrecipients: + Chris Beaumont, giampaolo.rodola
2016-05-05 00:25:54Chris Beaumontsetmessageid: <1462407954.17.0.565805320206.issue26960@psf.upfronthosting.co.za>
2016-05-05 00:25:54Chris Beaumontlinkissue26960 messages
2016-05-05 00:25:53Chris Beaumontcreate