From 2201b54ee3bd43280f3cd4a1754ba06bc86382ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Tue, 15 Oct 2024 15:55:40 +0200 Subject: [PATCH] Http2: Adjust send window also on inactive streams Fixes an issue where a stream isn't active _yet_, but will be. So it also needs to know about the adjusted window size. Pick-to: 6.8 Change-Id: I752760e4c99bac36580b3b8d0ed510baf2905529 Reviewed-by: Mate Barany --- src/network/access/qhttp2connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/access/qhttp2connection.cpp b/src/network/access/qhttp2connection.cpp index dc1b3a72a4a..ef7b8a28eb7 100644 --- a/src/network/access/qhttp2connection.cpp +++ b/src/network/access/qhttp2connection.cpp @@ -1937,7 +1937,7 @@ bool QHttp2Connection::acceptSetting(Http2::Settings identifier, quint32 newValu qCDebug(qHttp2ConnectionLog, "[%p] Adjusting initial window size for %zu streams by %d", this, size_t(m_streams.size()), delta); for (const QPointer &stream : std::as_const(m_streams)) { - if (!stream || !stream->isActive()) + if (!stream) continue; qint32 sum = 0; if (qAddOverflow(stream->m_sendWindow, delta, &sum)) {