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. Change-Id: I752760e4c99bac36580b3b8d0ed510baf2905529 Reviewed-by: Mate Barany <mate.barany@qt.io> (cherry picked from commit 2201b54ee3bd43280f3cd4a1754ba06bc86382ba) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
18d790810e
commit
1619b7232e
@ -1900,7 +1900,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