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 https://github.com/w3c/webrtc-pc/pull/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 <hta@webrtc.org> Commit-Queue: Philipp Hancke <phancke@microsoft.com> Reviewed-by: Florent Castelli <orphis@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38767}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
b889a7aee4
commit
41a8357170
@ -25,6 +25,10 @@
|
||||
|
||||
namespace cricket {
|
||||
|
||||
// TURN servers are limited to 32 in accordance with
|
||||
// https://w3c.github.io/webrtc-pc/#dom-rtcconfiguration-iceservers
|
||||
static constexpr size_t kMaxTurnServers = 32;
|
||||
|
||||
// Candidate for ICE based connection discovery.
|
||||
// TODO(phoglund): remove things in here that are not needed in the public API.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user