Improvements #13676 » HttpClient.patch
| 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 ||
|
||
- « Previous
- 1
- 2
- Next »