Skip to content

Fix incorrect SimpleConnectionPool callback in SharedHttpClientConnectionGroup - #6267

Merged
vietj merged 1 commit into
masterfrom
fix-incorrect-cancellation-callback-in-pool-master
Jul 30, 2026
Merged

Fix incorrect SimpleConnectionPool callback in SharedHttpClientConnectionGroup#6267
vietj merged 1 commit into
masterfrom
fix-incorrect-cancellation-callback-in-pool-master

Conversation

@vietj

@vietj vietj commented Jul 30, 2026

Copy link
Copy Markdown
Member

Motivation:

SharedHttpClientConnectionGroup has a semantically incorrect callback on pool waiter cancellation that triggers an NPE when the pool is closed: the err is not null and therefore the right clause of the expression should not be executed.

Changes:

Fix the expression to be correct.

…tionGroup

Motivation:

SharedHttpClientConnectionGroup has a semantically incorrect callback on pool waiter cancellation that triggers an NPE when the pool is closed: the err is not null and therefore the right clause of the expression should not be executed.

Changes:

Fix the expression to be correct.
@vietj vietj added this to the 5.2.0 milestone Jul 30, 2026
@vietj vietj added the bug label Jul 30, 2026
@vietj vietj self-assigned this Jul 30, 2026
@vietj
vietj merged commit d986364 into master Jul 30, 2026
8 checks passed
@vietj
vietj deleted the fix-incorrect-cancellation-callback-in-pool-master branch July 30, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant