Fix ICE connection fallback (#2144)

* Fix ICE connection fallback

Short connection detection relied on iceFailedTimeout, which previously
had been misinterpreted. Since we've reduced iceFailedTimeout, it is
creating false negatives.

We'll instead use PingTimeout since clients are expected to keep the
signal connection active.

* reduce ping interval to align with total ice failure timeout
This commit is contained in:
David Zhao
2023-10-15 14:36:12 -07:00
committed by GitHub
parent abe74a3f50
commit 65934e6486
6 changed files with 20 additions and 31 deletions
+3
View File
@@ -58,6 +58,9 @@ const (
disconnectCleanupDuration = 5 * time.Second
migrationWaitDuration = 3 * time.Second
PingIntervalSeconds = 5
PingTimeoutSeconds = 15
)
type pendingTrackInfo struct {