This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new b1b387d3c7 http2: close stream on sending RST_STREAM (#11209)
b1b387d3c7 is described below
commit b1b387d3c7b75798e76bd234f40ad3208bb1a54f
Author: Masaori Koshiba <[email protected]>
AuthorDate: Fri Apr 5 15:52:32 2024 +0900
http2: close stream on sending RST_STREAM (#11209)
(cherry picked from commit b5dca0dc6567fdc47f79af94b1b1ce0b085e3804)
---
proxy/http2/Http2ConnectionState.cc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/proxy/http2/Http2ConnectionState.cc
b/proxy/http2/Http2ConnectionState.cc
index b089048eb1..3abeeb32da 100644
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -1248,6 +1248,12 @@ Http2ConnectionState::rcv_frame(const Http2Frame *frame)
client_ip, session->get_connection_id(), stream_id, error.msg);
}
this->send_rst_stream_frame(stream_id, error.code);
+
+ // start closing stream on stream error
+ if (Http2Stream *stream = find_stream(stream_id); stream != nullptr) {
+ ink_assert(stream->get_state() ==
Http2StreamState::HTTP2_STREAM_STATE_CLOSED);
+ stream->initiating_close();
+ }
}
}
}