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

feat: TTL for servers in Rendezvous #1773

Merged
merged 1 commit into from Dec 4, 2018
Merged

Conversation

3Hren
Copy link
Member

@3Hren 3Hren commented Dec 4, 2018

Previously in a client tries to resolve remote server in the Rendezvous and that server is absent - the client is hanged for some period of time. This was reported as inconvenient because if such server has never been published it is meaningless even to try to wait for it.
Moreover, when a server is resolved it cleans its announce mapping until the next announce, which causes flapping in the info handler.
Now all servers are considered live and will not be removed from the info handle if they are capable to reannounce themselves in ~30s. Otherwise the immediate "no peer found" error will be returned to the client.

Previously in a client tries to resolve remote server in the Rendezvous and that server is absent - the client is hanged for some period of time. This was reported as inconvenient because if such server has never been published it is meaningless even to try to wait for it.
Moreover, when a server is resolved it cleans its announce mapping until the next announce, which causes flapping in the info handler.
Now all servers are considered live and will not be removed from the info handle if they are capable to reannounce themselves in ~30s. Otherwise the immediate "no peer found" error will be returned to the client.
@3Hren 3Hren added T: feature This PR/Issue adds a new feature P: medium This PR/Issue has normal priority V: minor This PR/Issue required minor version to be bumped S: Rendezvous This PR/Issue changes Rendezvous labels Dec 4, 2018
@nikonov1101 nikonov1101 merged commit 7dcb610 into master Dec 4, 2018
@nikonov1101 nikonov1101 deleted the feat/rv/ttl-for-servers branch December 4, 2018 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: medium This PR/Issue has normal priority S: Rendezvous This PR/Issue changes Rendezvous T: feature This PR/Issue adds a new feature V: minor This PR/Issue required minor version to be bumped
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants