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 <mate.barany@qt.io>
This commit is contained in:
parent
ca05ba3e49
commit
2201b54ee3
@ -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<QHttp2Stream> &stream : std::as_const(m_streams)) {
|
||||
if (!stream || !stream->isActive())
|
||||
if (!stream)
|
||||
continue;
|
||||
qint32 sum = 0;
|
||||
if (qAddOverflow(stream->m_sendWindow, delta, &sum)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user