From 2402b46cf3027d57842136336a48d8386a681ca8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 30 Jan 2014 21:26:18 +0900 Subject: [PATCH] Fix bug header block is not ignored as properly --- lib/nghttp2_session.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index 7847ecd2..c95e606a 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -3446,6 +3446,10 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session, return rv; } busy = 1; + if(rv == NGHTTP2_ERR_IGN_HEADER_BLOCK) { + iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK; + break; + } iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK; break; case NGHTTP2_PRIORITY: