Skip to content

Unbounded per-SSRC RTCP statistics history causes linear memory growth #2174

Description

@szcom

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions