Log skipped relay fallback and bail sequential dial on cancelled context

This commit is contained in:
Viktor Liu
2026-06-04 13:18:23 +02:00
parent fbd97d6da5
commit 36f346c0fe
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -681,6 +681,9 @@ func (c *Client) onDatagramTooLarge(conn net.Conn, cause error) {
// Without the shared tracker a reconnect would just race QUIC again and
// re-fail, so leave the connection up rather than loop.
if c.transportFallback == nil {
if c.datagramFallbackTriggered.CompareAndSwap(false, true) {
c.log.Debugf("%s, but no transport fallback configured, leaving connection up", cause)
}
return
}