Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Unbounded per-SSRC RTCP statistics history causes linear memory growth

Chiusa
#2,174 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c
Ambito
performance

Direzione di ricerca

Read ssrc_receiver_report() in daemon/ssrc.c: it allocates an ssrc_stats_block (L411-418) and appends it to other_e->stats_blocks after only rejecting samples under a second apart (L433-445), and the list is freed only when the SSRC entry is destroyed (L51-58); master repeats this near L2453-2472. Decide a bound (sample count or age) and enforce it at append time, keeping the newest entries. Done means RTCP/MOS memory stays flat across a long call; look for existing ssrc/statistics tests before changing the list.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
rtpengine version the issue has been seen with

12.5.1.41-1~bpo13+1

Used distribution and its version

trixie/sid

Linux kernel version used

6.6.48-flatcar

CPU architecture issue was seen on (see uname -m)

x86_64

Expected behaviour you didn't see

Memory used for RTCP/MOS statistics should remain bounded independently of call duration

Unexpected behaviour you saw

For every accepted RTCP Receiver Report, ssrc_receiver_report() allocates an ssrc_stats_block and appends it to other_e->stats_blocks.
The implementation:

--final-timeout=SECS provides an indirect bound by deleting the call after a fixed time regardless of continuing RTP/RTCP, which also releases the SSRC history.

Steps to reproduce the problem

No response

Additional program output to the terminal or logs illustrating the issue

Anything else?

No response

Lingua principale
Perl
Stelle
992
Fork
459
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sipwise/rtpengine

Tutte le issue di sipwise/rtpengine

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.