Skip to content

fix(wsconncache): only allow one peer per connection #5886

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 1 commit into from
Jan 26, 2023

Conversation

coadler
Copy link
Contributor

@coadler coadler commented Jan 26, 2023

If an agent went away and reconnected, the wsconncache connection would
be polluted for about 10m because there would be two peers with the
same IP. The old peer always had priority, which caused the dashboard to
try and always dial the old peer until it was removed.

Fixes: #5292

@coadler coadler self-assigned this Jan 26, 2023
If an agent went away and reconnected, the wsconncache connection would
be polluted for about 10m because there would be two peers with the
same IP. The old peer always had priority, which caused the dashboard to
try and always dial the old peer until it was removed.

Fixes: #5292
@coadler coadler force-pushed the colin/wsconncache-fix branch from 269bc1e to b87fd81 Compare January 26, 2023 22:09
@bpmct bpmct enabled auto-merge (squash) January 26, 2023 22:18
@bpmct bpmct merged commit 52ecd35 into main Jan 26, 2023
@bpmct bpmct deleted the colin/wsconncache-fix branch January 26, 2023 22:23
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Web terminal does not re-connect when agent is restarted (spot VM)
3 participants