Skip to content
Closed
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: 2 additions & 2 deletions proxy/http/Http1ClientSession.cc
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,11 @@ Http1ClientSession::state_wait_for_close(int event, void *data)
case VC_EVENT_ACTIVE_TIMEOUT:
case VC_EVENT_INACTIVITY_TIMEOUT:
half_close = false;
this->do_io_close();
if (client_vc != nullptr) {
client_vc->do_io_close();
client_vc = nullptr;
}
this->do_io_close();
break;
case VC_EVENT_READ_READY:
// Drain any data read
Expand Down Expand Up @@ -395,11 +395,11 @@ Http1ClientSession::state_keep_alive(int event, void *data)
break;

case VC_EVENT_EOS:
this->do_io_close();
if (client_vc != nullptr) {
client_vc->do_io_close();
client_vc = nullptr;
}
this->do_io_close();
break;

case VC_EVENT_READ_COMPLETE:
Expand Down
2 changes: 1 addition & 1 deletion proxy/http2/Http2ClientSession.cc
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@ Http2ClientSession::main_event_handler(int event, void *edata)
case VC_EVENT_ERROR:
case VC_EVENT_EOS:
this->set_dying_event(event);
this->do_io_close();
if (client_vc != nullptr) {
client_vc->do_io_close();
client_vc = nullptr;
}
this->do_io_close();
retval = 0;
break;

Expand Down