Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close discarded connections #152

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

fatkodima
Copy link
Contributor

Currently, when a new connection is created and the connection pool reaches its maximum size, it just removes some old connection, but without closing. So it is possible to end up with lots of lingering opened connections, which will not be reused and waste process' opened fds.

This PR makes sure to close discarded connections.

@jjb
Copy link

jjb commented Dec 4, 2024

@tenderlove what do you think?

@tenderlove tenderlove merged commit a4d93fd into drbrain:master Dec 4, 2024
16 checks passed
@fatkodima fatkodima deleted the close-discarded-connections branch December 4, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants