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

add ClientBuilder->setConnectionParams() #507

Merged

Conversation

Oliboy50
Copy link
Contributor

Closes #382

We want to be able to pass ['client'][] options globally instead of "per request".

This is the PR for the master branch, see #506 for 2.x branch.

Other related issues: #259

@polyfractal polyfractal merged commit 51afb31 into elastic:master Dec 16, 2016
@johntiror
Copy link

Hi, I couldn't find documentation regarding this new method. How can I set the timeout? like this?
$params['client']['timeout']=10;

Thanks

@polyfractal
Copy link
Contributor

@johntiror Yep!

There's also $params['client']['connect_timeout'] which controls the original connection timeout duration ('timeout' controls the request timeout, not the initial connection). Most folks don't really care which, but sometimes the distinction matters :)

p365labs pushed a commit to p365labs/elasticsearch-php that referenced this pull request Sep 10, 2017
p365labs pushed a commit to p365labs/elasticsearch-php that referenced this pull request Sep 10, 2017
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.

3 participants