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

Improved Presenter-Client protocol #7

Open
WilliamChiu opened this issue Oct 25, 2019 · 0 comments
Open

Improved Presenter-Client protocol #7

WilliamChiu opened this issue Oct 25, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@WilliamChiu
Copy link
Owner

Currently, those who connect ask "are there presenters", and are put in a pending state where they await a response from potential presenters. If they hear from a presenter, they are assigned client, and if they do not, they assign themselves presenter. The delay before being assigned presenter is currently necessary because of the case where:

  • There is a presenter A
  • B and C connect at the same time
  • B and C both ask "are there presenters" and both respond "yes" to both themselves and A
  • This kicks A out of presenting

However, there may be a way to avoid this delay by sending and receiving timestamps to validate claims of presentership:

  • There is a presenter A
  • B and C connect at the same time
  • B and C both ask "are there presenters" and both respond "yes, I have been presenting since ___" to both themselves and A
  • A does not assign itself to client as it compares the timestamp received and its own timestamp and sees it has been presenting for longer
@WilliamChiu WilliamChiu added enhancement New feature or request help wanted Extra attention is needed labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant