[issue13131] FD leak in urllib2

STINNER Victor report at bugs.python.org
Thu Oct 24 06:29:32 EDT 2019


STINNER Victor <vstinner at python.org> added the comment:

This issue is a duplicate of bpo-12133 which has been fixed in Python 2.7 by:

commit c74a6ba2d6c1f331896cf8dacc698b0b88c7e670
Author: Victor Stinner <victor.stinner at haypocalc.com>
Date:   Fri Jun 17 14:06:27 2011 +0200

    Issue #12133: AbstractHTTPHandler.do_open() of urllib.request closes the HTTP
    connection if its getresponse() method fails with a socket error. Patch written
    by Ezio Melotti.

----------
nosy: +vstinner
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> ResourceWarning in urllib.request

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue13131>
_______________________________________


More information about the Python-bugs-list mailing list