Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HTTP/2] Forward innerException's HttpRequestError to retryable HttpRequestException #89963

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

antonfirsov
Copy link
Member

If we are doing a retry because of a protocol error, or some other HttpIOException, we should forward the error code to the retryable HttpRequestException in case it surfaces to the user. With this, surfacing HttpRequestError.Unknown should be very rare in HTTP/2, most likely indicating a bug.

(Sort-of) contributes to #89097.

@ghost
Copy link

ghost commented Aug 3, 2023

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

If we are doing a retry because of a protocol error, or some other HttpIOException, we should forward the error code to the retryable HttpRequestException in case it surfaces to the user. With this, surfacing HttpRequestError.Unknown should be very rare in HTTP/2, most likely indicating a bug.

(Sort-of) contributes to #89097.

Author: antonfirsov
Assignees: antonfirsov
Labels:

area-System.Net.Http

Milestone: -

@antonfirsov
Copy link
Member Author

The CI failures are unrelated.

@antonfirsov antonfirsov merged commit b9c1129 into dotnet:main Aug 3, 2023
@karelz karelz added this to the 8.0.0 milestone Aug 10, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants