[issue11199] urllib hangs when closing connection

rg3 report at bugs.python.org
Mon Feb 21 23:26:15 CET 2011


rg3 <sarbalap+freshmeat at gmail.com> added the comment:

I have to correct myself. I applied the patch manually to my Python 2.6 installation. In Python 2.6, the line you moved is number 961, and I did the same change.

With your change, the connection can be closed, but you have to wait for the file to be completely transferred. As I was throttling to 1 KB/sec initially, I thought it was still hanging because it takes more than 1 minute for the test file to be sent. Still, the connection isn't immediately closed when you request to close it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11199>
_______________________________________


More information about the Python-bugs-list mailing list