classification
Title: urllib urlopener leaves open sockets for FTP connection
Type: resource usage Stage:
Components: Library (Lib) Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Claudiu.Popa, orsenthil
Priority: normal Keywords: patch

Created on 2014-06-03 09:03 by Claudiu.Popa, last changed 2014-06-03 12:36 by orsenthil.

Files
File name Uploaded Description Edit
urllib_ftp_resource_warning.patch Claudiu.Popa, 2014-06-03 09:03 review
Messages (1)
msg219671 - (view) Author: PCManticore (Claudiu.Popa) * (Python triager) Date: 2014-06-03 09:03
To be precise, when running test_urllib on a machine with a local FTP server, but with a set of credentials different than the ones used by test_urllib.urlopen_HttpTests.test_ftp_nonexisting. In this case, ftpwrapper from urllib.request will succesfully connect to the FTP server, but it will fail when sending the credentials, leaving the connection opened. The attached patch tries to fix this.
History
Date User Action Args
2014-06-03 12:36:53orsenthilsetnosy: + orsenthil
2014-06-03 09:03:17Claudiu.Popacreate