• Nadeem Vawda's avatar
    Merge: #10883: Fix socket leaks in urllib.request. · 02000161
    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.
    02000161
test_urllib2.py 55.7 KB