From b0a1d8b6090848ae8f6c1c9c4b34de7cd2507496 Mon Sep 17 00:00:00 2001 From: Victor Boivie Date: Wed, 12 Jun 2024 12:17:22 +0200 Subject: [PATCH] Support WebRTC-DataChannelMessageInterleaving If the field trial WebRTC-DataChannelMessageInterleaving is set, message interleaving in SCTP (RFC8260) will be enabled in dcSCTP. Bug: webrtc:41481008 Change-Id: I989b9ca554439ab0afd71f04d14a5cb5444b3361 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/354480 Reviewed-by: Florent Castelli Commit-Queue: Victor Boivie Cr-Commit-Position: refs/heads/main@{#42469} --- media/sctp/dcsctp_transport.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/media/sctp/dcsctp_transport.cc b/media/sctp/dcsctp_transport.cc index 99ecc94a68..3d54b7d742 100644 --- a/media/sctp/dcsctp_transport.cc +++ b/media/sctp/dcsctp_transport.cc @@ -197,6 +197,8 @@ bool DcSctpTransport::Start(int local_sctp_port, DataChannelInterface::MaxSendQueueSize(); // This is just set to avoid denial-of-service. Practically unlimited. options.max_send_buffer_size = std::numeric_limits::max(); + options.enable_message_interleaving = + env_.field_trials().IsEnabled("WebRTC-DataChannelMessageInterleaving"); std::unique_ptr packet_observer; if (RTC_LOG_CHECK_LEVEL(LS_VERBOSE)) {