Skip to content

fix(client): cancel idle interval when pool empties#292

Draft
lrowe wants to merge 1 commit into
hyperium:masterfrom
lrowe:lrowe-cancel-idle-interval-when-empty
Draft

fix(client): cancel idle interval when pool empties#292
lrowe wants to merge 1 commit into
hyperium:masterfrom
lrowe:lrowe-cancel-idle-interval-when-empty

Conversation

@lrowe

@lrowe lrowe commented Jun 12, 2026

Copy link
Copy Markdown

The IdleTask is started on first connection when pool_idle_timeout is set however it is not stopped when the pool is empty leaving the event loop spinning every pool_idle_timeout ms.

I noticed this in Deno (see: denoland/deno#29444) and the fix seems fairly small. Do you think such a change would be worth considering? Happy to work this up with test cases if so.

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.

1 participant