Commit 40f04fbe authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fix incoming CONTINUATION payload length is not considered in callback

parent cacf4ecf
...@@ -3807,6 +3807,8 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session, ...@@ -3807,6 +3807,8 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session,
if(cont_hd.flags & NGHTTP2_FLAG_END_HEADERS) { if(cont_hd.flags & NGHTTP2_FLAG_END_HEADERS) {
iframe->frame.hd.flags |= NGHTTP2_FLAG_END_HEADERS; iframe->frame.hd.flags |= NGHTTP2_FLAG_END_HEADERS;
} }
iframe->frame.hd.length += cont_hd.length;
busy = 1; busy = 1;
if(iframe->state == NGHTTP2_IB_EXPECT_CONTINUATION) { if(iframe->state == NGHTTP2_IB_EXPECT_CONTINUATION) {
iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK; iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment