-
Notifications
You must be signed in to change notification settings - Fork 817
connectionRequestTimeout for httpClient Fixes gh-799 #810
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
Conversation
|
I had bumped into that problem recently and I've just wanted to report that future request :-). It is especially useful, as "total" timeout to perform the request-response pair doesn't seem to be supported by HC5 - https://issues.apache.org/jira/browse/HTTPCLIENT-1074 |
OlgaMaciaszek
left a comment
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.
Hello @galaxy-sea, thanks for submitting this PR. I've added a comment - please address it. Also, please submit these changes against 3.1.x instead of main, so we'll get them included in the 2021.x release train as well.
| /** | ||
| * Default value for connection request timeout. | ||
| */ | ||
| public static final int DEFAULT_CONNECTION_REQUEST_TIMEOUT = 5; |
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.
In order to maintain compatibility, let's stick with the HC5 defualt connection request timeout (3 minutes).
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.
Done.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #810 +/- ##
============================================
+ Coverage 74.44% 74.59% +0.14%
Complexity 570 570
============================================
Files 67 67
Lines 2211 2224 +13
Branches 300 300
============================================
+ Hits 1646 1659 +13
Misses 396 396
Partials 169 169
|
hello @OlgaMaciaszek, I resubmitted a PR for the 3.1. x branch . pr#817 |
|
Thanks @galaxy-sea . Closing in favour of #817. |
Fixes issue Can't config connection request timeout for http client #799