Skip to content

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

Merged
bpmct merged 1 commit into
mainfrom
colin/wsconncache-fix
Jan 26, 2023
Merged

bpmct merged 1 commit into
mainfrom
colin/wsconncache-fix

Conversation

@coadler

@coadler coadler commented Jan 26, 2023

Copy link
Copy Markdown
Contributor

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