Commit 3e84bf0
fix(relay): default interop image to WebTransport at root path (#34)
* fix(relay): default interop image to WebTransport at root path
The moq-interop-runner's docker harness dials the relay at a path-less
https://relay:4443 (WebTransport, ALPN "h3") and provides no env knob to
select the relay's transport. The interop relay image defaulted to raw
QUIC (MOQT_TRANSPORT=quic), so it advertised only the moqt-* ALPNs and
rejected every h3 ClientHello with "tls: no application protocol" — every
client connecting to a moq-go relay in docker failed, including
moq-go -> moq-go (0/6).
Default the interop entrypoint/Dockerfile to MOQT_TRANSPORT=webtransport
and MOQT_WEBTRANSPORT_PATH=/ to match the harness, and skip the relay's
"/" catch-all 404 handler when the WebTransport path is "/" (registering
two handlers for the same pattern panics the ServeMux; a root-mounted
upgrade already covers every request). The -webtransport and
-webtransport-path binary flag defaults are unchanged, so local
`go run ./cmd/relay` is unaffected.
Verified through the runner's compose: moq-go -> moq-go docker goes from
0/6 to 6/6.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(interop): pin client-direction loopback relay to raw QUIC
Flipping the relay image default to WebTransport (so the external
moq-interop-runner, which has no transport knob, can reach it) broke this
repo's own "our client → our relay" CI job: `make interop-client` defaults
to a raw-QUIC loopback (moqt://relay:4443), and its relay relied on the
image's old quic default. With the relay now defaulting to WebTransport it
advertised only h3, so the moqt:// client failed with "tls: no application
protocol".
docker-compose.client.yml now defaults the relay's MOQT_TRANSPORT to quic
(matching the moqt:// loopback URL), and the Makefile derives it from
CLIENT_RELAY_URL's scheme so an https:// override stays consistent.
Third-party relay images ignore MOQT_TRANSPORT. interop/docker-compose.yml
already forwarded MOQT_TRANSPORT, so interop-quic/interop-webtransport are
unaffected.
Verified: `make interop-client` loopback passes 6/6 with the relay in QUIC
mode.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent d49a924 commit 3e84bf0
5 files changed
Lines changed: 50 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| |||
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
94 | | - | |
| 100 | + | |
| 101 | + | |
95 | 102 | | |
96 | 103 | | |
97 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | | - | |
47 | | - | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
12 | 21 | | |
13 | 22 | | |
14 | 23 | | |
| |||
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
24 | | - | |
25 | | - | |
| 33 | + | |
| 34 | + | |
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
251 | 258 | | |
252 | 259 | | |
253 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
0 commit comments