Repository navigation
Commit 95bf738
fix(sfu): use TCP TURN relay, not UDP, so multi-homed hosts don't drop
A UDP TURN relay rides UDP between the client and the TURN server, which
NAT-rebinds and silently dies a couple minutes into a stream on a
multi-homed / dead-NIC host. With "Force relay" (relay-only) there's no
fallback, so the publisher fails with "could not establish pc
connection" — even though the relay connected fine initially. Append
?transport=tcp to plain turn: URLs so the client→TURN leg is a stable
TCP connection (coturn listens TCP on 3478; verified solid). turns:
(TLS) is left as a last-resort fallback only — its handshake is
intermittently flaky on this coturn. Server-side, so existing clients
pick it up on the next connect (no app release).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent f1ab493 commit 95bf738
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | 34 | | |
25 | 35 | | |
26 | 36 | | |
27 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
28 | 40 | | |
29 | 41 | | |
30 | 42 | | |
| |||
0 commit comments