diff --git a/lib/ElephantIO/Client.php b/lib/ElephantIO/Client.php index a9878bf..3c4522e 100644 --- a/lib/ElephantIO/Client.php +++ b/lib/ElephantIO/Client.php @@ -314,8 +314,8 @@ private function handshake() { $version = $version['version']; // CURLOPT_CONNECTTIMEOUT_MS and CURLOPT_TIMEOUT_MS were only implemented on curl 7.16.2 - if (version_compare($version, '7.16.2') > -1) { - $timeout *= 1000; + if (true === version_compare($version, '7.16.2', '<')) { + $timeout /= 1000; $constants = array(CURLOPT_CONNECTTIMEOUT, CURLOPT_TIMEOUT); }