aboutsummaryrefslogtreecommitdiff
path: root/media/sctp
diff options
context:
space:
mode:
authorFlorent Castelli <orphis@webrtc.org>2022-02-16 13:37:46 +0100
committerWebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-02-16 14:30:31 +0000
commit035e97a447455bdd434b6d775b824d3ee2bb2c8c (patch)
treec455af7aa8c53ccbd1ae16a730af6e6adfa6cd9e /media/sctp
parentdf2b264ac00e4ed2fe53111b730a6c7cfc03d1f4 (diff)
downloadwebrtc-035e97a447455bdd434b6d775b824d3ee2bb2c8c.tar.gz
Make dcSCTP the default SCTP implementation
To disable dcSCTP and fallback to usrsctp, you can use the field trial WebRTC-DataChannel-Dcsctp/Disabled/ Bug: chromium:1243702 Change-Id: Ia90b796562245558a61481317bcded437400b045 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/251800 Auto-Submit: Florent Castelli <orphis@webrtc.org> Commit-Queue: Florent Castelli <orphis@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36018}
Diffstat (limited to 'media/sctp')
-rw-r--r--media/sctp/sctp_transport_factory.cc8
-rw-r--r--media/sctp/sctp_transport_factory.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/media/sctp/sctp_transport_factory.cc b/media/sctp/sctp_transport_factory.cc
index 5097d423d9..071d7fdb23 100644
--- a/media/sctp/sctp_transport_factory.cc
+++ b/media/sctp/sctp_transport_factory.cc
@@ -25,11 +25,11 @@
namespace cricket {
SctpTransportFactory::SctpTransportFactory(rtc::Thread* network_thread)
- : network_thread_(network_thread), use_dcsctp_("Enabled", false) {
+ : network_thread_(network_thread), use_usrsctp_("Disabled", false) {
RTC_UNUSED(network_thread_);
#ifdef WEBRTC_HAVE_DCSCTP
- webrtc::ParseFieldTrial({&use_dcsctp_}, webrtc::field_trial::FindFullName(
- "WebRTC-DataChannel-Dcsctp"));
+ webrtc::ParseFieldTrial({&use_usrsctp_}, webrtc::field_trial::FindFullName(
+ "WebRTC-DataChannel-Dcsctp"));
#endif
}
@@ -38,7 +38,7 @@ SctpTransportFactory::CreateSctpTransport(
rtc::PacketTransportInternal* transport) {
std::unique_ptr<SctpTransportInternal> result;
#ifdef WEBRTC_HAVE_DCSCTP
- if (use_dcsctp_.Get()) {
+ if (!use_usrsctp_.Get()) {
result = std::unique_ptr<SctpTransportInternal>(new webrtc::DcSctpTransport(
network_thread_, transport, webrtc::Clock::GetRealTimeClock()));
}
diff --git a/media/sctp/sctp_transport_factory.h b/media/sctp/sctp_transport_factory.h
index ed7c2163d7..9ae246a6a6 100644
--- a/media/sctp/sctp_transport_factory.h
+++ b/media/sctp/sctp_transport_factory.h
@@ -29,7 +29,7 @@ class SctpTransportFactory : public webrtc::SctpTransportFactoryInterface {
private:
rtc::Thread* network_thread_;
- webrtc::FieldTrialFlag use_dcsctp_;
+ webrtc::FieldTrialFlag use_usrsctp_;
};
} // namespace cricket