Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http: Fix double call to stop() in http::client
- 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)
- Loading branch information