Skip to content
Closed
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
5 changes: 3 additions & 2 deletions proxy/http2/Http2ConnectionState.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1183,8 +1183,9 @@ Http2ConnectionState::release_stream(Http2Stream *stream)
// We were shutting down, go ahead and terminate the session
// this is a member of Http2ConnectionState and will be freed
// when ua_session is destroyed
ua_session->destroy();

if (ua_session) {
Copy link
Copy Markdown
Contributor

@masaori335 masaori335 Aug 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks weird because ua_session is already null-checked in above (line # 1169).

ua_session->destroy();
Copy link
Copy Markdown
Contributor

@bryancall bryancall Aug 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not seeing this issue in our 7.1.x or in 8.0.x. Makes sense to not destroy if ua_session is nullptr.

}
// Can't do this because we just destroyed right here ^,
// or we can use a local variable to do it.
// ua_session = nullptr;
Expand Down