Skip to content

Conversation

rafalbigaj
Copy link
Member

The method BaseService.Request invoked without result (nil) does not close http.Response and prevents connection to be put back into idle state.

We observed significant memory usage or quick MaxConnsPerHost limit exhaustion, when BaseService.Request is called with nil result.

Issue: #175

@CLAassistant
Copy link

CLAassistant commented Feb 22, 2023

CLA assistant check
All committers have signed the CLA.

@dpopp07 dpopp07 requested a review from padamstx February 22, 2023 19:57
Copy link
Contributor

@dpopp07 dpopp07 left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, Rafal!

This looks good to me, but I'd @padamstx to take a look at it too before merging

…esponse

The method BaseService.Request invoked without result (nil) does not close http.Response and prevents connection to be put back into idle state.

We observed significant memory usage or quick MaxConnsPerHost limit exhaustion, when BaseService.Request is called with nil result.

Issue: IBM#175
Signed-off-by: Rafał Bigaj <rafal.bigaj@pl.ibm.com>
Copy link
Contributor

@padamstx padamstx left a comment

Choose a reason for hiding this comment

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

LGTM

@rafalbigaj
Copy link
Member Author

Thanks @padamstx! Is there a way to merge this fix to v5.10.x?

Signed-off-by: Phil Adams <phil_adams@us.ibm.com>
@padamstx padamstx self-assigned this Feb 23, 2023
@padamstx
Copy link
Contributor

Thanks @padamstx! Is there a way to merge this fix to v5.10.x?

If it is really needed there, then yes, I can work out a way to get it merged into the v5.10 release. But... the current 5.12.x release should be compatible. After I merge the PR into main (it will produce the 5.12.2 release), would you be able to try out that out to see if we can avoid applying the fix to 5.10.x?

@padamstx padamstx merged commit a8c0324 into IBM:main Feb 23, 2023
ibm-devx-sdk pushed a commit that referenced this pull request Feb 23, 2023
## [5.12.2](v5.12.1...v5.12.2) (2023-02-23)

### Bug Fixes

* BaseService.Request invoked without result does not close http.Response ([#176](#176)) ([a8c0324](a8c0324))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 5.12.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

5 participants