Commit da7959c2 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Deal with the case when h2 backend is retired before it is initialized

parent 2e44f23b
......@@ -2379,6 +2379,10 @@ void Http2Session::check_retire() {
ev_prepare_stop(conn_.loop, &prep_);
if (!session_) {
return;
}
auto last_stream_id = nghttp2_session_get_last_proc_stream_id(session_);
nghttp2_submit_goaway(session_, NGHTTP2_FLAG_NONE, last_stream_id,
NGHTTP2_NO_ERROR, nullptr, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment