There was an error while loading. Please reload this page.
2 parents 8a82aca + 5d07845 commit f52135cCopy full SHA for f52135c
lib/ElephantIO/Client.php
@@ -314,8 +314,8 @@ private function handshake() {
314
$version = $version['version'];
315
316
// CURLOPT_CONNECTTIMEOUT_MS and CURLOPT_TIMEOUT_MS were only implemented on curl 7.16.2
317
- if (version_compare($version, '7.16.2') > -1) {
318
- $timeout *= 1000;
+ if (true === version_compare($version, '7.16.2', '<')) {
+ $timeout /= 1000;
319
$constants = array(CURLOPT_CONNECTTIMEOUT, CURLOPT_TIMEOUT);
320
}
321
0 commit comments