Skip to content
Merged
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
7 changes: 7 additions & 0 deletions proxy/http2/Http2ConnectionState.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,14 @@ class Http2ConnectionState : public Continuation
void
destroy()
{
if (in_destroy) {
schedule_zombie_event();
return;
}
in_destroy = true;
if (shutdown_cont_event) {
shutdown_cont_event->cancel();
shutdown_cont_event = nullptr;
}
cleanup_streams();

Expand Down Expand Up @@ -374,6 +380,7 @@ class Http2ConnectionState : public Continuation
Http2StreamId continued_stream_id = 0;
bool _scheduled = false;
bool fini_received = false;
bool in_destroy = false;
int recursion = 0;
Http2ShutdownState shutdown_state = HTTP2_SHUTDOWN_NONE;
Http2ErrorCode shutdown_reason = Http2ErrorCode::HTTP2_ERROR_MAX;
Expand Down