diff --git a/src/shrpx_http2_upstream.cc b/src/shrpx_http2_upstream.cc index 29d962f4..41539058 100644 --- a/src/shrpx_http2_upstream.cc +++ b/src/shrpx_http2_upstream.cc @@ -903,7 +903,6 @@ int Http2Upstream::downstream_eof(DownstreamConnection *dconn) { if (error_reply(downstream, 502) != 0) { return -1; } - downstream->set_response_state(Downstream::MSG_COMPLETE); } handler_->signal_write(); // At this point, downstream may be deleted. diff --git a/src/shrpx_spdy_upstream.cc b/src/shrpx_spdy_upstream.cc index 5ccc1336..f57e38ed 100644 --- a/src/shrpx_spdy_upstream.cc +++ b/src/shrpx_spdy_upstream.cc @@ -610,7 +610,6 @@ int SpdyUpstream::downstream_eof(DownstreamConnection *dconn) { if (error_reply(downstream, 502) != 0) { return -1; } - downstream->set_response_state(Downstream::MSG_COMPLETE); } handler_->signal_write(); // At this point, downstream may be deleted.