From 304ff6a6f98c7437a5a7f31d14f6db4991290f7d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 7 Feb 2016 21:12:36 +0900 Subject: [PATCH] Don't send extension frame in closing state --- lib/nghttp2_session.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index 35be7cf5..4a905ef5 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -2034,6 +2034,10 @@ static int session_prep_frame(nghttp2_session *session, break; default: /* extension frame */ + if (session_is_closing(session)) { + return NGHTTP2_ERR_SESSION_CLOSING; + } + rv = session_pack_extension(session, &session->aob.framebufs, frame); if (rv != 0) { return rv;