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: set TCPMaxRetries to 5 for reasonable timeouts on send #61

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

spikecurtis
Copy link

@spikecurtis spikecurtis commented Sep 20, 2024

Fixes: coder/coder#14712

SSH can hang for a really long time if you lose connectivity to your workspace, e.g. lose WiFi moving your laptop around, etc. If you're running coder ssh it becomes just an unresponsive terminal, and you have to open a new terminal to kill the process.

This PR configures our TCP connections with gVisor so that they time out in 15-30s if you try to send data and don't get a response. That amount of time should allow Tailscale/Wireguard to reconnect if possible, while not making the user wait around a ton of time if it's just never going to work, based on their (lack of) network connectivity.

Copy link
Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @spikecurtis and the rest of your teammates on Graphite Graphite

@spikecurtis spikecurtis marked this pull request as ready for review September 20, 2024 08:31
@spikecurtis spikecurtis merged commit ddd4a72 into main Sep 20, 2024
7 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coder ssh hangs if underlying network is down
3 participants