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
merged 1 commit into from Dec 16, 2016

Conversation

@Oliboy50
Copy link
Contributor

@Oliboy50 Oliboy50 commented Nov 29, 2016

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
1 of 2 checks passed
1 of 2 checks passed
continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
CLA Commit author has signed the CLA
Details
polyfractal added a commit that referenced this pull request Dec 16, 2016
@johntiror
Copy link

@johntiror johntiror commented Jan 25, 2017

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
Member

@polyfractal polyfractal commented Jan 26, 2017

@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 added a commit to p365labs/elasticsearch-php that referenced this pull request Sep 10, 2017
p365labs added 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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants