Skip to content

RTX streams leaks routines when no interceptors are registered or using custom buffers #2952

Open
@OrlandoCo

Description

@OrlandoCo

Your environment.

  • Version: Latest
  • Browser: Any

What did you do?

If you are using RTX streams without interceptors or with custom buffers, the RTP receiver spawns a go routine that will loop forever:
https://github.com/pion/webrtc/blob/2fd3640fa3e394aa65cd22447349bdad76c26844/rtpreceiver.go#L438C1-L490C5

What did you expect?

Interceptors related code should check for interceptor usage before spawning go routines.

What happened?

Go routines are spawned for each receiver with RTX stream causing memory leaks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions