[issue26960] urllib hangs when closing connection

2016-05-04 Thread Chris Beaumont

New submission from Chris Beaumont:

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

--
components: Library (Lib)
messages: 264868
nosy: Chris Beaumont, giampaolo.rodola
priority: normal
severity: normal
status: open
title: urllib hangs when closing connection
versions: Python 2.7

___
Python tracker 
<http://bugs.python.org/issue26960>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26960] urllib hangs when closing connection

2016-05-04 Thread Chris Beaumont

Changes by Chris Beaumont :


--
keywords: +patch
Added file: http://bugs.python.org/file42728/urllib.patch

___
Python tracker 
<http://bugs.python.org/issue26960>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com