Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increased ICE disconnected timeout #79

Merged

Conversation

nils-ohlmeier
Copy link

Chrome AFAIK sends ICE checks every 2 seconds. And a single lost STUN consent (ICE ping) can result in the ICE connection state to switch to "disconnected". So the current timeout basically mean two lost STUN consents in a row result in us trying to restart the call. That might be a little to aggressive.

As indicated in the additional comment in the code: I would recommend that once ICE disconnected has been reached, that we start looking at PC stats more closely to try to figure out if we should just wait for the connection state to recover, or if we should try to restart.

@third774
Copy link
Collaborator

Ah! Nice — thanks! Yeah, good suggestion.

@third774 third774 merged commit 23fb804 into cloudflare:main Aug 12, 2024
2 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.

2 participants