This is an automated email from the ASF dual-hosted git repository. masaori pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new d3ff8b2009 http2: change stream state to closed from open if END_STREAM is sent and received (#11188) d3ff8b2009 is described below commit d3ff8b20090ba6b172d11ef87e09ef586cf92113 Author: Masaori Koshiba <masa...@apache.org> AuthorDate: Fri Mar 29 09:17:34 2024 +0900 http2: change stream state to closed from open if END_STREAM is sent and received (#11188) --- src/proxy/http2/Http2Stream.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/proxy/http2/Http2Stream.cc b/src/proxy/http2/Http2Stream.cc index 0ee5cd36d9..8783ce0796 100644 --- a/src/proxy/http2/Http2Stream.cc +++ b/src/proxy/http2/Http2Stream.cc @@ -407,7 +407,11 @@ Http2Stream::change_state(uint8_t type, uint8_t flags) _state = Http2StreamState::HTTP2_STREAM_STATE_HALF_CLOSED_REMOTE; } } else if (send_end_stream) { - _state = Http2StreamState::HTTP2_STREAM_STATE_HALF_CLOSED_LOCAL; + if (receive_end_stream) { + _state = Http2StreamState::HTTP2_STREAM_STATE_CLOSED; + } else { + _state = Http2StreamState::HTTP2_STREAM_STATE_HALF_CLOSED_LOCAL; + } } else { // Do not change state }