Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

MihaZupan
Copy link
Member

Fixes #2195

This moves RequestCanceled, RequestBodyCanceled and UpgradeRequestCanceled to a debug-level log.
The only thing I'm not sure about is whether ForwardingRequestCancelled is the right name for it in case we decide to switch more errors to it in the future.

Most of the change is switching error tests to use a shared helper that now also asserts that the error was logged.

@MihaZupan MihaZupan added this to the YARP 2.2.0-preview1 milestone May 15, 2024
@MihaZupan MihaZupan self-assigned this May 15, 2024
@MihaZupan MihaZupan requested a review from benjaminpetit as a code owner May 15, 2024 17:50
@hughbidone
Copy link

Hi, thanks for this but has this been released yet i.e. does the latest version 2.2.0 have this enhancement?

I am using 2.1.0 and it is just spamming our exceptions log with these cancelled requests.

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.

Control the handling of TaskCanceledException and other exceptions
3 participants