[relay] reduce QUIC initial packet size to 1280 (IPv6 min MTU) (#5374)

* [relay] reduce QUIC initial packet size to 1280 (IPv6 min MTU)

* adjust QUIC initial packet size to 1232 based on RFC 9000 §14
This commit is contained in:
Zoltan Papp
2026-02-18 10:58:14 +01:00
committed by GitHub
parent e9b2a6e808
commit 318cf59d66
3 changed files with 9 additions and 2 deletions

View File

@@ -3,4 +3,9 @@ package relay
const (
// WebSocketURLPath is the path for the websocket relay connection
WebSocketURLPath = "/relay"
// QUICInitialPacketSize is the conservative initial QUIC packet size (bytes)
// for unknown-path PMTU, per RFC 9000 §14: 1280 (IPv6 min MTU) 40 (IPv6
// header) 8 (UDP header) = 1232. DPLPMTUD may probe larger sizes later.
QUICInitialPacketSize = 1232
)