mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-24 04:01:07 +03:00
Summary: Implement connection id management logic for connection migration. **New Behavior:** - PathManager assigns an available peer CID to each new probe path, marks it in use, and return a new LocalErrorCode::NO_AVAILABLE_CID for the case when there are no available connection IDs. - Writing path validation packets now uses the path’s assigned destination CID instead of the connections, enforcing the protocol requirement that a new CID is used when using a different path. This applies to both the client and server. - Incoming packets are validated against the full set of self connection IDs; when the peer rotates to a new destination CID on the active path, the client adopts it and updates codec state. This applies to both the client and the server. - startPathProbe now fails with INTERNAL_ERROR when no unused peer CID remains. This applies to the client. Reviewed By: sharmafb Differential Revision: D80503189 fbshipit-source-id: 529f096d6d459512eb4cabc1dd4499134555039d
96 KiB
96 KiB