1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-10 21:22:20 +03:00

Exchange active_connection_id_limit in transport parameters [2/2]

Summary:
Client will set their active_connection_id_limit to the server as 7 (so it will
have 8 conn ids in total).

Reviewed By: JunqiWang

Differential Revision: D18532441

fbshipit-source-id: b0be65cec9f7c483469b0b4a2810bc370a6945c3
This commit is contained in:
Viktor Chynarov
2019-11-20 08:44:46 -08:00
committed by Facebook Github Bot
parent 3a6dfb73c3
commit 20807a350d
9 changed files with 27 additions and 9 deletions

View File

@@ -215,6 +215,7 @@ bool updateSimpleFrameOnPacketReceived(
case QuicSimpleFrame::Type::NewConnectionIdFrame_E: {
const NewConnectionIdFrame& newConnectionId =
*frame.asNewConnectionIdFrame();
// TODO vchynaro Ensure we ignore smaller subsequent retirePriorTos
// than the largest seen so far.
if (newConnectionId.retirePriorTo > newConnectionId.sequenceNumber) {