Skip to content

Conversation

@puru-khedre
Copy link

Issue:
Even after setting a higher timeout limit in the REST client, it doesn't help because the maximum limit is capped at 30s.

Description:
Removed the Idle Timeout on the RestClient, instead using the timeoutSeconds - 1 (timeoutSeconds is a RestClient class variable).

This update allows waiting for a longer time in specific situations where Rest APIs generally take a longer duration to respond. For example, it would help run bulk indexing on the opensearch/elasticsearch.

Previous commit where the timeout was initially implemented
In RestClient if a timeout is set, set timeout-1 as the idle timeout on the connection, otherwise the Jetty client seems to wait 30s anyway (30s is the default idle timeout)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant