mirror of
https://github.com/livekit/livekit.git
synced 2026-09-29 06:49:01 +00:00
* Do not request media sections for transceivers that cannot send getNumUnmatchedTransceivers counted every local transceiver without a mid. A transceiver whose track was removed before its section was negotiated (direction recvonly, no sender) or that was stopped (inactive) can never be matched to the recvonly section the remote adds in response to a MediaSectionsRequirement, so it stayed "outstanding" forever: every answer asked the remote for a section for it again, the remote appended another batch of transceivers each round, and its offer grew by a fixed amount per negotiation until it exceeded limit.signal_message_size_limit and the signalling connection was closed (full reconnect, then the cycle restarts). Count only transceivers that have something to send. A released transceiver that AddTrack reuses later becomes sendrecv and is counted again. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Address review: blank lines between test functions, assert transceiver reuse Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>