nodespark/des-connector

curl connection parameters seem to be ignored

Closed this issue · 0 comments

See

protected function initClient($params)
{
$conn_params = array();
if (isset($params['curl'])) {
$conn_params['client']['curl'] = $params['curl'];
}
$builder = ClientBuilder::create();
$params = $this->handleUrls($params);
$builder->setHosts($params['hosts']);
if (isset($params['handler'])) {
$builder->setHandler($params['handler']);
}
$this->proxy_client = $builder->build();
}

$conn_params is defined but never used

The passed in curl parameters don't make it to the ES library.

I think all that is needed is:

$builder->setConnectionParams($conn_params);