Skip to content

Commit 303113a

Browse files
xingriWebRTC LUCI CQ
authored andcommitted
Enable rtc::Socket::OPT_RECV_ECN socket option
Enable rtc::Socket::OPT_RECV_ECN socket option by field trial WebRTC-RFC8888CongestionControlFeedback. Bug: webrtc:15368 Change-Id: I9befbbb59745c0fc9528bf948ad2cfc90efe226b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/357920 Reviewed-by: Harald Alvestrand <[email protected]> Reviewed-by: Florent Castelli <[email protected]> Reviewed-by: Danil Chapovalov <[email protected]> Commit-Queue: Danil Chapovalov <[email protected]> Cr-Commit-Position: refs/heads/main@{#42726}
1 parent 916bf2f commit 303113a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

p2p/base/p2p_transport_channel.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,13 @@ void P2PTransportChannel::ParseFieldTrials(
773773
if (!ice_field_trials_.enable_goog_delta) {
774774
stun_dict_writer_.Disable();
775775
}
776+
777+
if (field_trials->IsEnabled("WebRTC-RFC8888CongestionControlFeedback")) {
778+
int desired_recv_esn = 1;
779+
RTC_LOG(LS_INFO) << "Set WebRTC-RFC8888CongestionControlFeedback: Enable "
780+
"and set ECN recving mode";
781+
SetOption(rtc::Socket::OPT_RECV_ECN, desired_recv_esn);
782+
}
776783
}
777784

778785
const IceConfig& P2PTransportChannel::config() const {

0 commit comments

Comments
 (0)