Skip to content

bug: dial timeouts from net.Dialer.Timeout are not retried in coder ssh #24201

Closed

Description

@EhabY

When coder ssh --stdio dials a Coder Connect host and the dial times out (e.g. broken tunnel but valid DNS), the error is not retried despite the retry logic from #24010.

Go's net.Dialer.Timeout produces a *net.OpError that wraps context.DeadlineExceeded. In isRetryableError, the context.DeadlineExceeded check runs before IsConnectionError, so the error is classified as non-retryable. The retry loop exits after a single attempt.

This also affects the tailnet DialAgent path since it goes through the same isRetryableError check.

Fix: #24199

Activity

  1. self-assigned this
    on Apr 9, 2026
  2. added a commit that references this issue on Apr 9, 2026
    1d0653c
  3. added a commit that references this issue on Apr 9, 2026
    577bddb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions