fix: descriptor leaking in salt.utils.http.query#68456
Conversation
|
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here's some information that may help as you continue your Salt journey. There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
twangboy
left a comment
There was a problem hiding this comment.
This looks great. Could you create a changelog?
|
Is this issue on 3006.x or 3007x too? |
I only caught this bug in 3007.x. @twangboy Added to changelog. Can we add this patch to release in 3007.x? |
|
We usually patch bugs on the earliest supported branch where the bug exists. If this bug exists on 3006.x, please patch it there, then the changes will be merged forward into 3007.x and master branches. |
|
This bug was introduced in #66330. I don't see the same issue in 3006.x releases. |
Ideally the fix would go into the 3007.x branch then. |
|
Please address the merge conflicts |
|
Please rebase and address the merge conflicts |
|
@vitalvas Can you rebase this? |
|
Please add |
fix: descriptor leaking in salt.utils.http.query
Fix file descriptor leak in
salt.utils.http.queryby wrappingSyncWrapper(AsyncHTTPClient, ...)in a context manager so the temporary IOLoop + socketpair are reliably torn down on both success and HTTP error paths.Adopted from upstream onto current 3007.x by @dwoz; original author @vitalvas preserved on the 3 cherry-picked commits (
fe44e3fc5c9,fe3d82bc252,147d20f645b).Fixes #68111