Skip to content

add ClientBuilder->setConnectionParams()#507

Merged
polyfractal merged 1 commit into
elastic:masterfrom
BedrockStreaming:master-set-connection-params
Dec 16, 2016
Merged

add ClientBuilder->setConnectionParams()#507
polyfractal merged 1 commit into
elastic:masterfrom
BedrockStreaming:master-set-connection-params

Conversation

@Oliboy50

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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