Skip to content

Receive Stun bytes not counted #694

@xnorpx

Description

@xnorpx

Ok, so this has bit us twice now, we don't see any recv bytes counted when we have no active streams. So figure it worth having an issue to track it.

There is no quick clean way to fix this, which is probably the reason it has a todo.

We switched to track the bytes outside str0m instead for now.

   let bytes_rx = match r.contents.inner {
            // TODO: stun is already parsed (depacketized) here
            Stun(_) => 0,
            Dtls(v) | Rtp(v) | Rtcp(v) => v.len(),
        };

https://github.com/algesten/str0m/blob/783b020ff7c859372884889e205c5c838792e97a/src/lib.rs#L1824C9-L1828C11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions