summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMÃ¥rten Nordheim <[email protected]>2025-05-09 11:31:48 +0200
committerQt Cherry-pick Bot <[email protected]>2025-05-14 11:50:08 +0000
commit1926f88b24206f91f16c894a8c0d35c4509427c7 (patch)
treef112b4ac948dc591ec9dd4307a068e75e59ba32c
parentadda61e87b749f0baffd1861f34d201036b97be6 (diff)
Http2: check if stream was RSTed w/ bespoke function
We have a function to check if a stream was locally reset - we should realistically only process HEADERS on RSTed streams for a limited amount of time. I forgot we had this mechanism in place already, let's update to use it for the recent fix. Amends 9224fdd3f4cccce7a8123ab398f6ff8745d759ce Change-Id: I4826100704542f681341ceb84c4f85332f8ae03d Reviewed-by: Matthias Rauter <[email protected]> (cherry picked from commit f95805670161b38da60602ada6128f03f7f9ceb2) Reviewed-by: Mate Barany <[email protected]> Reviewed-by: Edward Welbourne <[email protected]> (cherry picked from commit 013ec80ea89113af7ed46b6f30dedcba3c63d3e8) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
-rw-r--r--src/network/access/qhttp2connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qhttp2connection.cpp b/src/network/access/qhttp2connection.cpp
index 090468c39a9..1e864041f62 100644
--- a/src/network/access/qhttp2connection.cpp
+++ b/src/network/access/qhttp2connection.cpp
@@ -1875,7 +1875,7 @@ void QHttp2Connection::handleContinuedHEADERS()
const auto streamIt = m_streams.constFind(streamID);
if (firstFrameType == FrameType::HEADERS) {
- if (streamIt != m_streams.cend() && !streamIt.value()->wasReset()) {
+ if (streamIt != m_streams.cend() && !streamWasResetLocally(streamID)) {
QHttp2Stream *stream = streamIt.value();
if (stream->state() != QHttp2Stream::State::HalfClosedLocal
&& stream->state() != QHttp2Stream::State::ReservedRemote