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:
parent
e1bb06d8ab
commit
ef090d425e
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue