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

fix: Refactor tailnet conn AwaitReachable to allow for pings >1s RTT #5096

Merged
merged 2 commits into from
Nov 15, 2022

Conversation

mafredri
Copy link
Member

Initially I was just going to remove the 1s ping timeout to allow for connections with RTT >1s, however, then we'd run the risk of running an infinite number of goroutines if a network is down.

Opted to add back the timeout (increased to 5 minutes) with exponential backoff. This seems like a safe timeout to use, any connection that takes longer is quite likely unusable.

  • fix: Refactor tailnet conn AwaitReachable to allow for pings >1s RTT
  • fix: Add exponential backoff

Follow up to: https://github.com/coder/coder/pull/5043/files#r1021908754

@mafredri mafredri marked this pull request as ready for review November 15, 2022 18:06
@mafredri mafredri merged commit d9a83fc into main Nov 15, 2022
@mafredri mafredri deleted the mafredri/tailnet-ping-fix-rtt-over-1s branch November 15, 2022 18:59
@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2022
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.

None yet

2 participants