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

Set the connection request timeout #678

Merged
merged 1 commit into from
Nov 30, 2022
Merged

Conversation

yahavi
Copy link
Member

@yahavi yahavi commented Nov 23, 2022

  • All tests passed. If this feature is not already covered by the tests, I added new tests.

Set the connection request timeout to avoid infinite timeout during connection requests.

@yahavi yahavi requested a review from eyalbe4 November 23, 2022 13:35
@yahavi yahavi self-assigned this Nov 23, 2022
@@ -181,6 +181,7 @@ protected HttpClientBuilder createHttpClientBuilder() {
.custom()
.setSocketTimeout(timeoutMilliSeconds)
.setConnectTimeout(timeoutMilliSeconds)
.setConnectionRequestTimeout(timeoutMilliSeconds)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the value we set for timeoutMilliSeconds is one second? Is it not?
This seems like a very short timeframe. I suggest changing it to 30 seconds, and apply it to 3 timeout values.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not 1 second, the default is 5 minutes

@yahavi yahavi merged commit 72bcef2 into jfrog:master Nov 30, 2022
@yahavi yahavi deleted the conn-req-timeout branch November 30, 2022 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants