From 2e6845146beed2004a07526c8a598c058947bb0d Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 2 Nov 2026 22:38:33 +0000 Subject: [PATCH] raise max message size (#25) --- teleoprtc_repo/teleoprtc/stream.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teleoprtc_repo/teleoprtc/stream.py b/teleoprtc_repo/teleoprtc/stream.py index cc4f0092de..c8b971d13a 100644 --- a/teleoprtc_repo/teleoprtc/stream.py +++ b/teleoprtc_repo/teleoprtc/stream.py @@ -59,6 +59,8 @@ class WebRTCBaseStream(abc.ABC): config.force_media_transport = True config.disable_auto_negotiation = True config.ice_servers = [IceServer("stun:stun.l.google.com:19302")] + # the peers negotiate the smaller of their limits, so this only raises it when both sides allow it + config.max_message_size = 16 * 1024 * 1024 if bind_address is not None: config.bind_address = bind_address