Skip to content

fix(cli): add dial timeout and keepalive for Coder Connect - #24015

Merged
EhabY merged 1 commit into
mainfrom
fix/ssh-coder-connect-fallback
Apr 7, 2026
Merged

EhabY merged 1 commit into
mainfrom
fix/ssh-coder-connect-fallback

Conversation

@EhabY

@EhabY EhabY commented Apr 3, 2026 •

Copy link
Copy Markdown
Collaborator

The default net.Dialer in the Coder Connect path had no timeout, falling back to the OS TCP timeout when the tunnel was broken but DNS still resolved. Add a 5s dial timeout and 30s TCP keepalive.

Depends on #24010

Fixes #24006

@github-actions github-actions Bot added the community Pull Requests and issues created by the community. label Apr 3, 2026
@EhabY
EhabY force-pushed the fix/ssh-coder-connect-fallback branch from aa128ec to 1024b42 Compare April 3, 2026 14:41
@matifali matifali removed the community Pull Requests and issues created by the community. label Apr 3, 2026
@EhabY
EhabY marked this pull request as ready for review April 3, 2026 14:42
@EhabY
EhabY changed the base branch from main to fix/ssh-stdio-retry April 3, 2026 14:42
@EhabY
EhabY force-pushed the fix/ssh-coder-connect-fallback branch 2 times, most recently from 6c544dc to b9a484d Compare April 3, 2026 15:09
@EhabY
EhabY force-pushed the fix/ssh-stdio-retry branch 3 times, most recently from d7e0867 to ebe4912 Compare April 6, 2026 13:55
@spikecurtis

Copy link
Copy Markdown
Collaborator

Keep the dial timeout; I don't agree with the other changes. c.f. #24006 (comment)

@EhabY
EhabY force-pushed the fix/ssh-stdio-retry branch 2 times, most recently from 8c14f28 to 8e19be8 Compare April 7, 2026 08:40
@EhabY
EhabY force-pushed the fix/ssh-coder-connect-fallback branch from b9a484d to 6f694f1 Compare April 7, 2026 09:07
@EhabY EhabY changed the title fix(cli): add dial timeout, keepalive, and tailnet fallback for Coder Connect fix(cli/ssh): add dial timeout and keepalive for Coder Connect Apr 7, 2026
@EhabY EhabY changed the title fix(cli/ssh): add dial timeout and keepalive for Coder Connect fix(cli): add dial timeout and keepalive for Coder Connect Apr 7, 2026
@EhabY
EhabY requested a review from spikecurtis April 7, 2026 09:09
Base automatically changed from fix/ssh-stdio-retry to main April 7, 2026 21:59
The default net.Dialer had no timeout, falling back to the OS
TCP timeout when the Coder Connect tunnel was broken but DNS
still resolved. Add a 5s dial timeout and 30s TCP keepalive.
@EhabY
EhabY force-pushed the fix/ssh-coder-connect-fallback branch from 6f694f1 to 8a1fbdf Compare April 7, 2026 22:00
@EhabY
EhabY merged commit 027c222 into main Apr 7, 2026
26 checks passed
@EhabY
EhabY deleted the fix/ssh-coder-connect-fallback branch April 7, 2026 22:11
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 7, 2026
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.

coder ssh: Coder Connect path has no dial timeout, no health check, no tailnet fallback

3 participants