Swap sending of SETTINGS ACK frame and emitting the signal

This allows API users sending the HEADERS and DATA frames after the
SETTINGS ACK right from settingsFrameReceived slot, and keep the
expected frame order.

Pick-to: 6.8
Change-Id: I7900e786074d1d534c2e14f00e2aedf8dbb3a9d9
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit d3292dbeb60cc4f13be06e07a7408a0d0817975d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Alexey Edelev 2025-03-06 17:40:01 +01:00 committed by Qt Cherry-pick Bot
parent 70f13cfbb1
commit 3b8f6bb3d6

View File

@ -1602,8 +1602,8 @@ void QHttp2Connection::handleSETTINGS()
}
qCDebug(qHttp2ConnectionLog, "[%p] Sending SETTINGS ACK", this);
emit settingsFrameReceived();
sendSETTINGS_ACK();
emit settingsFrameReceived();
}
void QHttp2Connection::handlePUSH_PROMISE()