Allow PING frame to be sent after GOAWAY
This commit is contained in:
parent
0fbb46edd6
commit
acd6b40e4c
|
@ -2225,8 +2225,9 @@ static int session_prep_frame(nghttp2_session *session,
|
||||||
assert(session->obq_flood_counter_ > 0);
|
assert(session->obq_flood_counter_ > 0);
|
||||||
--session->obq_flood_counter_;
|
--session->obq_flood_counter_;
|
||||||
}
|
}
|
||||||
|
/* PING frame is allowed to be sent unless termination GOAWAY is
|
||||||
if (session_is_closing(session)) {
|
sent */
|
||||||
|
if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_ON_SEND) {
|
||||||
return NGHTTP2_ERR_SESSION_CLOSING;
|
return NGHTTP2_ERR_SESSION_CLOSING;
|
||||||
}
|
}
|
||||||
nghttp2_frame_pack_ping(&session->aob.framebufs, &frame->ping);
|
nghttp2_frame_pack_ping(&session->aob.framebufs, &frame->ping);
|
||||||
|
|
Loading…
Reference in New Issue