Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Connection Pool should allow disposing all connections #101
IMO, the whole point of using a connection pool is to both limit the number of concurrent connections, and avoid reconnecting every time you need one.
In my code, I'm leaving the connection to the database open so that I don't have to reconnect every time I fetch a locked connection.
The result of this is when my server shuts down, I get warnings about stale file descriptors. I'd like to close these open connections in a static destructor, but there is no mechanism to do this reliably! A