Skip to content
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

Fix connection leak with read timeout during acquisition #9449

Merged
merged 2 commits into from
Jun 16, 2023
Merged

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented Jun 15, 2023

When there was a read timeout (i.e. timeout handled by DefaultHttpClient) while the Mono from ConnectionManager was not yet complete, the PoolHandle would be dropped silently.

This patch handles cancellation of the Mono properly, releasing the pool handle.

This is already fixed by the ConnectionManager rework in 4.0.

Fixes #9448

When there was a read timeout (i.e. timeout handled by DefaultHttpClient) while the Mono<PoolHandle> from ConnectionManager was not yet complete, the PoolHandle would be dropped silently.

This patch handles cancellation of the Mono properly, releasing the pool handle.

This is already fixed by the ConnectionManager rework in 4.0.

Fixes #9448
@yawkat yawkat added the type: bug Something isn't working label Jun 15, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jun 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@yawkat yawkat merged commit c2cd4e7 into 3.10.x Jun 16, 2023
@yawkat yawkat deleted the acquire-leak branch June 16, 2023 07:29
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.

4 participants