When a 'SingleSiteClass' client is used to access multiple sites, the old class needs to be able to cleanly close down the connection so that the socket can be closed. When this is not done, ResourceWarning occur.
Related..the connections should be cached for reuse, but that is less important than allowing clean shutdown of the connection.
When a 'SingleSiteClass' client is used to access multiple sites, the old class needs to be able to cleanly close down the connection so that the socket can be closed. When this is not done, ResourceWarning occur.
Related..the connections should be cached for reuse, but that is less important than allowing clean shutdown of the connection.