Issue 26960: urllib hangs when closing connection (original) (raw)

Issue26960

Created on 2016-05-05 00:25 by Chris Beaumont, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
urllib.patch Chris Beaumont,2016-05-05 00:28 review
Messages (5)
msg264868 - (view) Author: Chris Beaumont (Chris Beaumont) * Date: 2016-05-05 00:25
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
msg265226 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-05-10 08:13
New changeset 44d02a5d59fb by Senthil Kumaran in branch '2.7': Closes . https://hg.python.org/cpython/rev/44d02a5d59fb
msg265228 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-05-10 08:29
New changeset 3388e249389d by Senthil Kumaran in branch '2.7': Add NEWS entry for . https://hg.python.org/cpython/rev/3388e249389d
msg265229 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2016-05-10 08:30
Thanks for raising this issue, Chris Beaumont. Fixed in 2.7.x
msg282850 - (view) Author: Ivan Pozdeev (Ivan.Pozdeev) * Date: 2016-12-10 13:21
This fix has caused to manifest itself in `urllib', too. AFAICS, it's impossible to fully fix `urllib' to correctly handle end-of-transmission response without fixing `ftplib' first.
History
Date User Action Args
2022-04-11 14:58:30 admin set github: 71147
2016-12-10 13:21:31 Ivan.Pozdeev set nosy: + Ivan.Pozdeevmessages: +
2016-05-10 08:30:10 orsenthil set type: behaviormessages: + nosy: + orsenthil
2016-05-10 08:29:42 python-dev set messages: +
2016-05-10 08:13:07 python-dev set status: open -> closednosy: + python-devmessages: + resolution: fixedstage: resolved
2016-05-05 00:28:01 Chris Beaumont set files: + urllib.patchkeywords: + patch
2016-05-05 00:25:54 Chris Beaumont create