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
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.
https://github.com/algesten/str0m/blob/783b020ff7c859372884889e205c5c838792e97a/src/lib.rs#L1824C9-L1828C11