Skip to content

session: preserve auth timeout causes - #7446

Draft
crazy-max wants to merge 1 commit into
moby:masterfrom
crazy-max:fix-session-auth-timeout-cause
Draft

crazy-max wants to merge 1 commit into
moby:masterfrom
crazy-max:fix-session-auth-timeout-cause

Conversation

@crazy-max

Copy link
Copy Markdown
Member

fixes #7444

Report which session-auth operation timed out instead of returning a bare DeadlineExceeded: context deadline exceeded. gRPC drops the cause set by context.WithTimeoutCause, so restore it when the returned status matches the local context's cancellation or deadline. The configured timeout remains unchanged, and unrelated RPC failures are preserved.

Restore the context cause when a session auth call returns a matching
cancellation or deadline status. This identifies the auth operation that
timed out instead of reporting only context deadline exceeded, without
changing the configured timeout or replacing unrelated RPC failures.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max force-pushed the fix-session-auth-timeout-cause branch from 323969b to dd2dffb Compare November 19, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A credential helper slower than 60 s fails the build at resolve image config with a bare DeadlineExceeded: context deadline exceeded

1 participant