-
Notifications
You must be signed in to change notification settings - Fork 115
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
limit number of ice servers to 32 #2679
Conversation
limits the number of ICE server entries to 64. This value is arbitrarily chosen, more than a few servers do not make sense in practice. As candidates from each server need a unique priority, the number space is limited. See https://bugs.chromium.org/p/webrtc/issues/detail?id=13195 and https://mailarchive.ietf.org/arch/msg/mmusic/isyEwdluHuTl5mMnVUDrmawBnIU/ for background information.
Firefox starts emitting console warnings at 5. Should we go with a lower value? |
I guess the question is first which value it will be. If it's reasonably high, throwing might be acceptable. 🙂 |
I expect quite a few attempts to use a list of "free stun and turn servers" (the list with the credentials from https://www.html5rocks.com/en/tutorials/webrtc/infrastructure/ which expired eight years ago). 64 is reasonably high that it should not be an issue, we could probably do an UMA histogram in chrome to get an impression on what people actually use. |
I think we can get histograms of the current usage from Chrome but that will take several release cycles. |
Preliminary results show that there are some people using 14, but very very few above that. |
32 and ignoring seems more web compatible |
after they have been informing the decision to limit to 32 servers in w3c/webrtc-pc#2679 WebRTC removal: https://webrtc-review.googlesource.com/c/src/+/277804 BUG=chromium:1360224 Change-Id: I00466d5ae483abbc353605e90f542c4f465f565b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3939467 Reviewed-by: Johannes Kron <[email protected]> Commit-Queue: Philipp Hancke <[email protected]> Cr-Commit-Position: refs/heads/main@{#1056861}
which have shown that 32 is a reasonably safe limit and informed w3c/webrtc-pc#2679 BUG=webrtc:13265,chromium:1360224 Change-Id: I63155653862e4c12720b8655c51ed5f3bdc742f0 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277804 Reviewed-by: Johannes Kron <[email protected]> Reviewed-by: Harald Alvestrand <[email protected]> Commit-Queue: Philipp Hancke <[email protected]> Cr-Commit-Position: refs/heads/main@{#38339}
Upstream commit: https://webrtc.googlesource.com/src/+/28fb04de62233d285d4b36a2f3fc2cbf0d16733b metrics: remove WebRTC.PeerConnection.IceServers.* which have shown that 32 is a reasonably safe limit and informed w3c/webrtc-pc#2679 BUG=webrtc:13265,chromium:1360224 Change-Id: I63155653862e4c12720b8655c51ed5f3bdc742f0 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277804 Reviewed-by: Johannes Kron <[email protected]> Reviewed-by: Harald Alvestrand <[email protected]> Commit-Queue: Philipp Hancke <[email protected]> Cr-Commit-Position: refs/heads/main@{#38339}
Upstream commit: https://webrtc.googlesource.com/src/+/28fb04de62233d285d4b36a2f3fc2cbf0d16733b metrics: remove WebRTC.PeerConnection.IceServers.* which have shown that 32 is a reasonably safe limit and informed w3c/webrtc-pc#2679 BUG=webrtc:13265,chromium:1360224 Change-Id: I63155653862e4c12720b8655c51ed5f3bdc742f0 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277804 Reviewed-by: Johannes Kron <[email protected]> Reviewed-by: Harald Alvestrand <[email protected]> Commit-Queue: Philipp Hancke <[email protected]> Cr-Commit-Position: refs/heads/main@{#38339}
Upstream commit: https://webrtc.googlesource.com/src/+/41a83571707a574bbe3da32f564b963b8092d59b Limit number of TURN servers to 32 Limit the number of TURN servers to 32 in order to allow the prioritization to assume a fixed offset for (de)prioritizing candidates. See w3c/webrtc-pc#2679 for discussion including some data on current usage. Guarded by WebRTC-LimitTurnServers which is used as a killswitch. BUG=webrtc:13195 Change-Id: Ib12726af426ae4238aa7eb6aa062c71af52d495f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/285340 Reviewed-by: Harald Alvestrand <[email protected]> Commit-Queue: Philipp Hancke <[email protected]> Reviewed-by: Florent Castelli <[email protected]> Cr-Commit-Position: refs/heads/main@{#38767}
Updated title to match limit in the PR which is 32. |
which have shown that 32 is a reasonably safe limit and informed w3c/webrtc-pc#2679 BUG=webrtc:13265,chromium:1360224 Change-Id: I63155653862e4c12720b8655c51ed5f3bdc742f0
limits the number of ICE server entries to 64.
This value is arbitrarily chosen, more than a few servers
do not make sense in practice. As candidates from each
server need a unique priority, the number space is limited.
See
https://bugs.chromium.org/p/webrtc/issues/detail?id=13195
and
https://mailarchive.ietf.org/arch/msg/mmusic/isyEwdluHuTl5mMnVUDrmawBnIU/
for background information.
We need to decide whether to throw an error (and if yes, which one) or silently ignore as it is done for certificates
Preview | Diff