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.
This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-26 23:48:16 +09:00
parent e1bb06d8ab
commit ef090d425e
2 changed files with 2 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}