Skip to content

Report ASP.NET Core route timeouts as 504 responses - #3076

Merged
MihaZupan merged 1 commit into
dotnet:mainfrom
MihaZupan:timeout-504
Nov 23, 2026
Merged

MihaZupan merged 1 commit into
dotnet:mainfrom
MihaZupan:timeout-504

Conversation

@MihaZupan

Copy link
Copy Markdown
Member

ASP.NET Core route timeouts cancel HttpContext.RequestAborted, which YARP previously treated as a client disconnect and reported as RequestCanceled (400).

Detect the canceled IHttpRequestTimeoutFeature.RequestTimeoutToken before classifying the linked-token cancellation, and report RequestTimedOut (504).

Fixes #2662

@MihaZupan MihaZupan added this to the YARP 3.0 milestone Nov 18, 2026
@MihaZupan MihaZupan self-assigned this Nov 18, 2026
@MihaZupan
MihaZupan enabled auto-merge (squash) November 18, 2026 08:54

@rosebyte rosebyte left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MihaZupan
MihaZupan merged commit 7a2fa8f into dotnet:main Nov 23, 2026
7 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.

Request timeouts reported as ForwarderError.RequestCanceled instead of RequestTimedOut

2 participants