It seems like the connection timeout setting of a cluster is not used.

However, in the 7.x-5.x version of this module:

$options = array(
  'hosts' => array($cluster->url),
  'curl' => array(
    CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
    CURLOPT_CONNECTTIMEOUT => (!empty($cluster->options['timeout']) ? $cluster->options['timeout'] : ELASTICSEARCH_CONNECTOR_DEFAULT_TIMEOUT)
  )
);

Comments

jover created an issue. See original summary.

jover’s picture

Patch available.

jover’s picture

Assigned: jover » Unassigned
Status: Active » Needs review

  • skek committed d827f96 on 8.x-5.x authored by jover
    Issue #2886438 by jover: Cluster connection timeout is ignored
    
skek’s picture

Status: Needs review » Fixed

@jover,

Thank you for the patch. It has been applied.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.