mirror of
https://github.com/livekit/livekit.git
synced 2026-10-06 09:57:58 +00:00
pion keeps substrings of every remote offer it parses for as long as the
transceivers created from it live. A client that adds a media section per
publish and leaves the old ones inactive makes the retained text grow with
the square of its publish count; one node held 6.2 GB of such offers.
Before pion sees an offer, strip codec, extension, msid and ssrc attributes
from inactive sections whose mid already maps to a transceiver, keeping one
payload type with its rtpmap. Off by default; gated on offer size and video
only unless audio is included:
rtc:
shrink_inactive_media_sections:
enabled: true
min_sdp_size: 20000
include_audio: false
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>