Project

General

Profile

Improvements #13676 » HttpClient.patch

Romain Mardulyn, 06/16/2025 03:33 PM

View differences:

src/Wt/Http/Client.C
Client::~Client()
{
abort();
auto impl = impl_.lock();
std::shared_ptr<Impl> impl;
{
#ifdef WT_THREADED
std::lock_guard<std::recursive_mutex> lock(implementationMutex_);
#endif // WT_THREADED
auto impl = impl_.lock();
abort();
}
if (impl) {
impl->removeClient();
}
......
AsioWrapper::error_code err,
const Message& response, const Message& request)
{
#ifdef WT_THREADED
std::unique_lock<std::recursive_mutex> lock(implementationMutex_);
#endif
impl_.reset();
int status = response.status();
if (!err && (((status == STATUS_MOVED_PERMANENTLY ||
(2-2/2)