From 40f04fbe036b1f9aea7c88f864978c8386b0de97 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 11 Feb 2014 16:16:39 +0900 Subject: [PATCH] Fix incoming CONTINUATION payload length is not considered in callback --- lib/nghttp2_session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index 9fd56a9b..c6be4f66 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -3807,6 +3807,8 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session, if(cont_hd.flags & NGHTTP2_FLAG_END_HEADERS) { iframe->frame.hd.flags |= NGHTTP2_FLAG_END_HEADERS; } + iframe->frame.hd.length += cont_hd.length; + busy = 1; if(iframe->state == NGHTTP2_IB_EXPECT_CONTINUATION) { iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK;