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

Map errors to exceptions #1764

Merged
merged 4 commits into from
Dec 11, 2024
Merged

Map errors to exceptions #1764

merged 4 commits into from
Dec 11, 2024

Conversation

tylerwowen
Copy link
Contributor

@tylerwowen tylerwowen commented Dec 10, 2024

Map WebApplicationException to more detailed subclasses, this is helpful for Rodimus adoption of this HttpClient implementation. Additionally, making callTimeout configurable and replacing existing readTimeout and connectTimeout. It's needed by Rodimus and it's easier to control 1 then 2.

The call timeout spans the entire call: resolving DNS, connecting, writing the request body, server processing, and reading the response body. If the call requires redirects or retries all must complete within one timeout period.

Lastly, there is a leak in the constructor. It's now moved to the static init block.

@tylerwowen tylerwowen requested a review from a team as a code owner December 10, 2024 00:54
@github-actions github-actions bot added the deploy-service Includes changes to deploy-service label Dec 10, 2024
@tylerwowen tylerwowen requested a review from osoriano December 10, 2024 21:45
osoriano
osoriano previously approved these changes Dec 10, 2024
@tylerwowen tylerwowen merged commit ec7a6ee into master Dec 11, 2024
6 checks passed
@tylerwowen tylerwowen deleted the touyang/http_error branch December 11, 2024 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy-service Includes changes to deploy-service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants