Skip to content

classify error as retryable when pipe closed in deadlineCappableConn#4567

Open
jgao54 wants to merge 1 commit into
mainfrom
fix-pipe-error
Open

classify error as retryable when pipe closed in deadlineCappableConn#4567
jgao54 wants to merge 1 commit into
mainfrom
fix-pipe-error

Conversation

@jgao54

@jgao54 jgao54 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Classify a transient error that can happen with DeadlineCapableConn. In #4380 we introduced an in-memory transport between connector and ssh using net.Pipe() to allow it to respect deadlines. This introduced a scenario where if the ssh tunnel is processing read/write when the pipe is closed, we get an io.ErrClosedPipe that ended up unhandled. The error is wrapped in an SSHTunnelClosedError to be precise, to avoid blindly handle all io.ErrClosedPipe that could hide future unrelated bugs.

Fixes: DBI-896

@jgao54 jgao54 requested a review from a team as a code owner July 10, 2026 23:32
@claude

claude Bot commented Jul 10, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

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.

1 participant