Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

simplehttp async connection pool freeing #57

Open
ploxiln opened this issue May 11, 2012 · 1 comment
Open

simplehttp async connection pool freeing #57

ploxiln opened this issue May 11, 2012 · 1 comment

Comments

@ploxiln
Copy link
Contributor

ploxiln commented May 11, 2012

simplehttp async connection pool resources are never all freed, even if there is no connection activity for a long time. This can contribute to memory fragmentation and pin large heap regions, so even if the application using simplehttp async connections naturally frees all its other resources, it still has an RSS near its maximum.

Maybe async connection pool resources should be freed if all connections they are related to are done and gone for more than a few seconds.

@ploxiln
Copy link
Contributor Author

ploxiln commented May 11, 2012

There is indeed a function exposed to clean up all connection pool resources, typically before one's program exits, but it's not convenient to detect and handle quiet times and free and reinit the connection pool in one's program.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant