Commit ef090d42 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Add missing Downstream::end_upload_data() call in HTTP/2 and SPDY

This ensures that all frontend code calls
Downstream::end_upload_data() when request was all received.
parent e1bb06d8
......@@ -273,6 +273,7 @@ int on_request_headers(Http2Upstream *upstream, Downstream *downstream,
if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
downstream->disable_upstream_rtimer();
downstream->end_upload_data();
downstream->set_request_state(Downstream::MSG_COMPLETE);
}
......
......@@ -209,6 +209,7 @@ void on_ctrl_recv_callback(spdylay_session *session, spdylay_frame_type type,
}
downstream->disable_upstream_rtimer();
downstream->end_upload_data();
downstream->set_request_state(Downstream::MSG_COMPLETE);
}
......
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