Elastica\Connection::setConnectTimeout PHP Method

setConnectTimeout() public method

Use a small value if you need a fast fail in case of dead, unresponsive or unreachable servers (~5 sec). Set to zero to switch to the default built-in connection timeout (300 seconds in curl).
See also: http://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html
public setConnectTimeout ( integer $timeout )
$timeout integer Connect timeout in seconds
    public function setConnectTimeout($timeout)
    {
        return $this->setParam('connectTimeout', $timeout);
    }