• Nadeem Vawda's avatar
    Issue #10883: Fix socket leaks in urllib.request. · 08f5f7aa
    Nadeem Vawda yazdı
    * ftpwrapper now uses reference counting to ensure that the underlying socket
      is closed when the ftpwrapper object is no longer in use
    * ftplib.FTP.ntransfercmd() now closes the socket if an error occurs
    
    Initial patch by Victor Stinner.
    08f5f7aa
test_urllib2.py 54.7 KB