-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
refactor: single reqwest::Client
for HTTP
#1071
Conversation
@@ -73,6 +73,8 @@ relative-path = { version = "1.7", features = ["serde"] } | |||
reqwest = { version = "0.11.27", default-features = false, features = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to have the latest version 0.12.x if there is no blocker issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will take this up in #1075
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Test Coverage Report for Build 12651787773Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
@de-sh can you resolve the conflicts pls |
Co-authored-by: Nikhil Sinha <[email protected]>
Fixes #XXXX.
Description
Use a single HTTP client to perform all normal outgoing HTTP requests from the parseable server.
Connection timeouts in 3s during setup, 10s per request and every 90s when not used/idling. Max 32 idle connections are allowed per host. gzip/brotli compression is enabled and can be used based on server(to which parseable connects) preference, rustls is used to perform TLS encryption (instead of native-tls) and only HTTP/1.1 connections are allowed (no HTTP/2)
This is different from the default client which has no timeouts, default pooling, no compression, and would support multiple TLS backends and HTTP versions.
This PR has: