Skip to content

BAH-4348 | Fix. Consume response entity even if request is a failure#60

Merged
mohan-13 merged 1 commit into
masterfrom
BAH-4348
Dec 18, 2025
Merged

BAH-4348 | Fix. Consume response entity even if request is a failure#60
mohan-13 merged 1 commit into
masterfrom
BAH-4348

Conversation

@mohan-13

@mohan-13 mohan-13 commented Dec 18, 2025

Copy link
Copy Markdown
Member

This PR fixes the issue of HTTP Connections not getting released back to the pool, when the request failed.
Since we are leveraging PoolingHttpClientConnectionManager, it expects the response entity to be consumed irrespective of the status of the response. This is needed to properly release the connection back to the pool.

Reference: https://www.baeldung.com/httpclient-connection-management#multiple

JIRA: https://bahmni.atlassian.net/browse/BAH-4348

@mohan-13 mohan-13 merged commit 9414439 into master Dec 18, 2025
2 checks passed
@mohan-13 mohan-13 deleted the BAH-4348 branch December 18, 2025 04:54
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