chen08209 说明 Concord 修复 QUIC 拥塞控制绑定与路径迁移问题
chen08209 表示,提交 f5b7fead 让每次可切换 QUIC 握手尝试拥有绑定到自身 QuicConn 的 SwitchFactory,避免双栈 Happy Eyeballs 或并发重连把协商的 Brutal、BBR 控制器应用到其他连接。路径迁移时会保留协商策略和活动控制状态,并为各路径使用独立 SwitchState。他称回环与单元回归覆盖双栈竞争、会话替换、迁移连续性及路径状态隔离等情况,修复将纳入下一次发行。
作者原文@chen08209Fixed in f5b7fead:
- Each switchable QUIC handshake attempt now creates its own
SwitchFactoryattached to itsQuicConninstead of sharing a single-slot factory across the outbound. Under dual-stack Happy Eyeballs or concurrent reconnects, Hysteria2, ShadowQUIC, and Hysteria v1 always apply the negotiated Brutal or BBR controller to the winning connection rather than a cancelled or newer attempt.SwitchFactorynow retains the negotiated Brutal/BBR policy and clones the active controller state onto migrated paths (updating only MTU) while giving each path an independentSwitchState, so QuinnPathData::newandPathData::from_previousmigrations (such as IPv6 client port hopping or IPv4 IP changes on the Hysteria2 server) keep both the chosen controller and its loss/bandwidth state without reverting tocubicor sharing state withprev_path.Loopback and unit regression tests cover dual-stack Happy Eyeballs (Hysteria2 and ShadowQUIC), delayed ShadowQUIC negotiation across session replacement, concurrent path-build/replacement, Brutal/BBR state continuity and
prev_pathisolation across migration, and Hysteria2 server IPv6 port rotation and IPv4 IP-change migration. This will be included in the next release.