jayvdb / anyhttp

HTTP client interface
MIT License
0 stars 2 forks source link

Cleanly close down client connections #3

Open jayvdb opened 9 years ago

jayvdb commented 9 years ago

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.