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

Added support for setting the read timeout in http config #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gchomatas
Copy link

The underlying apache and ning clients support socket/read timeout. With the current implementation this is hardcoded to the request timeout.

/cc @jhaber

The underlying apache and ning clients support socket/read timeout. With the current implementation this is hardcoded to the request timeout.
@@ -98,15 +100,15 @@ private RequestConfig createRequestConfig(HttpConfig config) {
return RequestConfig.custom()
.setConnectionRequestTimeout(config.getConnectTimeoutMillis())
.setConnectTimeout(config.getConnectTimeoutMillis())
.setSocketTimeout(config.getRequestTimeoutMillis())
.setSocketTimeout(config.getReadTimeoutMillis())
Copy link
Member

Choose a reason for hiding this comment

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

Won't this break anyone who was setting requestTimeoutMillis?

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