Skip to content

fix(pool): cap pool idle interval to a minimum - #814

Merged
0x676e67 merged 2 commits into
mainfrom
fix
Jul 18, 2025
Merged

fix(pool): cap pool idle interval to a minimum#814
0x676e67 merged 2 commits into
mainfrom
fix

Conversation

@0x676e67

Copy link
Copy Markdown
Owner

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a minimum interval cap for pool idle connection cleanup to improve performance by preventing excessive wake-ups for very short idle intervals. It's a backport from hyper-util that addresses potential performance issues when users configure very short idle timeouts.

  • Adds a 90ms minimum check interval for pool idle connection eviction
  • Updates the idle interval calculation to respect this minimum while still honoring shorter durations at checkout time
  • Modifies existing tests to validate the new minimum interval behavior

Comment thread src/core/client/pool.rs
Comment thread src/core/client/pool.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@0x676e67
0x676e67 merged commit daba062 into main Jul 18, 2025
7 checks passed
@0x676e67
0x676e67 deleted the fix branch July 18, 2025 14:23
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