mirror of
https://github.com/livekit/livekit.git
synced 2026-08-16 00:19:44 +00:00
Replace the per-NACK-packet goroutine spawn in DownTrack.handleRTCP with a single long-lived worker that coalesces pending NACKs into one retransmit pass. Pending sequence numbers are capped so a high NACK arrival rate cannot grow goroutine count or memory unboundedly. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>