Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions proxy/ProxyClientSession.cc
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,6 @@ ProxyClientSession::handle_api_return(int event)
}
break;
case TS_HTTP_SSN_CLOSE_HOOK: {
NetVConnection *vc = this->get_netvc();
if (vc) {
vc->do_io_close();
}
free(); // You can now clean things up
break;
}
Expand Down
5 changes: 5 additions & 0 deletions proxy/http/Http1ClientSession.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ Http1ClientSession::free()
// Free the transaction resources
this->trans.super_type::destroy();

if (client_vc) {
client_vc->do_io_close();
client_vc = nullptr;
}

super::free();
THREAD_FREE(this, http1ClientSessionAllocator, this_thread());
}
Expand Down