You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
icegoodmannequin opened this issue
Oct 18, 2020
· 3 comments
Labels
3.8only security fixes3.9only security fixes3.10only security fixespendingThe issue will be closed if no feedback is providedstdlibPython modules in the Lib dirtype-featureA feature request or enhancement
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2020-10-18.23:00:52.403>labels= ['3.8', 'library', '3.9', '3.10', 'performance']
title='urllib ResourceWarning in case of usage of FTP'updated_at=<Date2020-10-18.23:00:52.403>user='https://bugs.python.org/icegood'
In case when FTP url is successfully connected via default FTPHandler in FTPHandler.connect_ftp then release of this stuff becomes total responsibility of user i.e. socket remains open, which leads to ResourceWarning in the garbage collector, in case if the user does nothing.
In general case FTPHandler should be able to close immediately (in case if it raises as well) while re-using of the socket should be implemented only within CacheFTPHandler
Closing as the problem is not clear and there was no response from the OP to followup questions. We can reopen if there is an actual issue here aferall.
3.8only security fixes3.9only security fixes3.10only security fixespendingThe issue will be closed if no feedback is providedstdlibPython modules in the Lib dirtype-featureA feature request or enhancement
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: