Skip to content

Fix RC between publishers with duplicated ids #15

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

Merged
merged 4 commits into from
Apr 14, 2025
Merged

Conversation

mickel8
Copy link
Member

@mickel8 mickel8 commented Mar 20, 2025

It might happen that the old live view is still alive when the new one is created - e.g. when a page refresh happens, the backend process is alive for over 10 seconds (maybe it's waiting for reconnects?).

This might result in two processes publishing on the same topic. This PR fixes this issues by introducing locked flag that is released when we stop getting tracks info from the old publisher or we get the bye message.

Credits for the solution @brzep 👏

@mickel8 mickel8 changed the title Fix RC between publishers with duplicated id Fix RC between publishers with duplicated ids Mar 20, 2025
@mickel8 mickel8 requested review from sgfn and brzep March 20, 2025 20:34
@mickel8 mickel8 requested a review from sgfn March 24, 2025 13:13
@mickel8
Copy link
Member Author

mickel8 commented Mar 24, 2025

@sgfn I revisited how publisher is cleaned up. Could you test your edge cases and see if everything works correctly?

@sgfn
Copy link
Member

sgfn commented Mar 26, 2025

@mickel8 sure I can, just be warned that this has the potential to further delay the demo

At first glance, I'm worried that, after these changes, certain things will happen multiple times when they shouldn't...

@mickel8 mickel8 merged commit 334fa5a into master Apr 14, 2025
@mickel8 mickel8 deleted the fix-dup-pub branch April 14, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants