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

[v24.1.x] http: Fix double call to stop() in http::client #18428

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #18304

- http::client::stop() can be called twice in the event the client is
used via the `with_client` method.

- The method had unconditionally called stop() in a finally clause with
the intention to have users not have to manually do this and forget to
call stop.

- However stop() can also be called within certain exception handlers
within methods invoked by http::client, ones that handle
tls::verification_error exceptions.

- This patch adds a boolean to our http client so that stop() can early
exit if it has already been called.

(cherry picked from commit 2ed203d)
@vbotbuildovich vbotbuildovich added this to the v24.1.x-next milestone May 13, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label May 13, 2024
@piyushredpanda
Copy link
Contributor

Known failure: #17847

@piyushredpanda piyushredpanda merged commit 7506261 into redpanda-data:v24.1.x May 23, 2024
15 of 18 checks passed
@piyushredpanda piyushredpanda modified the milestones: v24.1.x-next, v24.1.3 May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants