Don't send extension frame in closing state

This commit is contained in:
Tatsuhiro Tsujikawa 2016-02-07 21:12:36 +09:00
parent fc39f2d9d2
commit 304ff6a6f9
1 changed files with 4 additions and 0 deletions

View File

@ -2034,6 +2034,10 @@ static int session_prep_frame(nghttp2_session *session,
break; break;
default: default:
/* extension frame */ /* extension frame */
if (session_is_closing(session)) {
return NGHTTP2_ERR_SESSION_CLOSING;
}
rv = session_pack_extension(session, &session->aob.framebufs, frame); rv = session_pack_extension(session, &session->aob.framebufs, frame);
if (rv != 0) { if (rv != 0) {
return rv; return rv;