Skip to content

Fix the inverted pending connection hint of the client pool - #14459

Merged
dstepanov merged 1 commit into
5.2.xfrom
denis/pool49-pending-connection-hint
Nov 13, 2026
Merged

dstepanov merged 1 commit into
5.2.xfrom
denis/pool49-pending-connection-hint

Conversation

@dstepanov

Copy link
Copy Markdown
Contributor

needPendingConnection is documented as localPendingConnections <
localPendingRequests.size(), but the update after a connection was started
compared the other way round. An event loop with more waiting requests than
pending connections was then skipped when another connection closed, and its
requests waited for one of its own connections.

No new test: the pool cannot be driven in isolation, and the case needs several event loops with enforced connection locality at the connection limit. The existing client suite passes.

needPendingConnection is documented as localPendingConnections <
localPendingRequests.size(), but the update after a connection was started
compared the other way round. An event loop with more waiting requests than
pending connections was then skipped when another connection closed, and its
requests waited for one of its own connections.
@dstepanov dstepanov added the type: bug Something isn't working label Nov 13, 2026
@dstepanov
dstepanov marked this pull request as ready for review November 13, 2026 10:40
@sonarqubecloud

Copy link
Copy Markdown

@dstepanov
dstepanov merged commit cf6ff23 into 5.2.x Nov 13, 2026
21 checks passed
@dstepanov
dstepanov deleted the denis/pool49-pending-connection-hint branch November 13, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants