Skip to content

Fix/watchdog protocol detection#13

Merged
casablanque-code merged 2 commits into
mainfrom
fix/watchdog-protocol-detection
Jul 13, 2026
Merged

Fix/watchdog protocol detection#13
casablanque-code merged 2 commits into
mainfrom
fix/watchdog-protocol-detection

Conversation

@casablanque-code

Copy link
Copy Markdown
Owner

No description provided.

zt status previously showed a static "auto" for tunnels not pinned to a
specific protocol, even though cloudflared negotiates and can fall back
at runtime (startup connectivity pre-check, or mid-session fallback).

Add internal/cloudflared.DetectEffectiveProtocol, which tails a tunnel's
cloudflared.log for the 'Registered tunnel connection ... protocol=' and
'precheck complete ... suggested_protocol=' markers and returns whichever
is chronologically most recent. zt status now shows 'auto (http2)' /
'auto (quic)' instead of a bare 'auto'.

Also documents the separate 502-despite-healthy-QUIC case (UDP MTU/
fragmentation dropping real traffic while the pre-check's small test
connection still passes) - not detectable or fixable automatically,
--tcp is the only fix.
@casablanque-code casablanque-code merged commit 381e420 into main Jul 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant