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

Send periodical state messages from inactive clients #5

Open
pekam opened this issue May 10, 2019 · 0 comments
Open

Send periodical state messages from inactive clients #5

pekam opened this issue May 10, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@pekam
Copy link
Owner

pekam commented May 10, 2019

After the basic garbage collection functionality #4 is implemented, send a periodical state message to notify other peers about a client's state when it has not sent any messages for a while. This allows the garbage collector to clean the operation log even when one user has been inactive for a while.

Sending any message should reset the timer of sending the state message.

Instead of a timer, the state message could be sent when a set amount of messages have been received after the client's last own message. This could optimize the behavior to not send unnecessary messages when every peer is inactive, and on the other hand send the state message faster when the users are really active and garbage collection is useful more often.

@pekam pekam added the enhancement New feature or request label May 10, 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
Projects
None yet
Development

No branches or pull requests

1 participant