Skip to content

fix(client): cap pool idle interval to a minimum #217

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

Merged
merged 1 commit into from
Jul 18, 2025

Conversation

seanmonstar
Copy link
Member

With an incredibly tiny idle timeout, that can cause the idle checker interval to trigger very frequently. It doesn't seem necessary, and so this can cap to a minimum. The connections will still be "expired" at the time the user indicated, and will be respected when Pool::checkout tries to use it. It just might not be completely reaped from the data structures until a few milliseconds later.

@cratelyn any thoughts? I think this is probably a good idea. The amount of time I wasn't too sure on, it's somewhat arbitrary. I figured 100ms, and then made it a little under just in case so nothing waits longer than due to too much load. But I could be convinced of anything.

@seanmonstar seanmonstar merged commit 24714a3 into master Jul 18, 2025
16 checks passed
@seanmonstar seanmonstar deleted the push-llzunspyvmsp branch July 18, 2025 13:35
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.

2 participants