From 6226e723b56500168dbe663c5399b4d9775dfcb2 Mon Sep 17 00:00:00 2001 From: VallierDev <24893073+VallierDev@users.noreply.github.com> Date: Sat, 17 Oct 2026 00:34:46 +0800 Subject: [PATCH] SCTP: send messages up to 256 KB like libwebrtc peers advertise webrtc-rs fixed the association send limit at 64 KB regardless of the remote a=max-message-size, so a large directory listing (5600 entries, ~73 KB compressed) failed with 'outbound packet larger than maximum message size' and the viewer waited until its timeout. Co-Authored-By: Claude Opus 5.5 --- vendor/webrtc/src/sctp_transport/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vendor/webrtc/src/sctp_transport/mod.rs b/vendor/webrtc/src/sctp_transport/mod.rs index 8927070..483c0a4 100644 --- a/vendor/webrtc/src/sctp_transport/mod.rs +++ b/vendor/webrtc/src/sctp_transport/mod.rs @@ -156,7 +156,10 @@ impl RTCSctpTransport { association = sctp::association::Association::client(sctp::association::Config { net_conn: Arc::clone(net_conn) as Arc, max_receive_buffer_size: 0, - max_message_size: 0, + // uu-remote-linux patch: the association's send limit ignores the remote + // a=max-message-size and defaults to 64 KB; libwebrtc peers (official viewers, + // our answers/offers) advertise 262144. A 5600-entry directory reply is ~73 KB. + max_message_size: 262_144, name: String::new(), }) => { break Arc::new(association?);