Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't decrease counter for internal/unused tracks #118

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

streamer45
Copy link
Contributor

Summary

Looking at metrics on Community I spotted something a little disturbing. Our counter for output video (screen) tracks went negative.

image

Inspecting the logs revealed an unusual track being removed when the session closed:

image

My theory so far is that the track is created internally by pion as a result of the client negotiating a sendrecv transceiver. To avoid this sort of issues, before decreasing the counter we are adding a track ID validation function that will only match tracks explicitly created by us.

@streamer45 streamer45 added the 2: Dev Review Requires review by a core committer label Aug 16, 2023
@streamer45 streamer45 added this to the v0.12.0 milestone Aug 16, 2023
@streamer45 streamer45 requested a review from cpoile August 16, 2023 23:19
@streamer45 streamer45 self-assigned this Aug 16, 2023
@streamer45 streamer45 added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Aug 21, 2023
@streamer45 streamer45 merged commit 0f99853 into master Aug 21, 2023
2 checks passed
@streamer45 streamer45 deleted the ignore-internal-tracks branch August 21, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants