Merge branch '3.0'

This commit is contained in:
terrafrost 2022-01-29 11:35:55 -06:00
commit 57771503aa

View File

@ -1348,7 +1348,7 @@ class SSH2
$write = $except = null; $write = $except = null;
$start = microtime(true); $start = microtime(true);
$sec = (int) floor($this->curTimeout); $sec = (int) floor($this->curTimeout);
$usec = (int) 1000000 * ($this->curTimeout - $sec); $usec = (int) (1000000 * ($this->curTimeout - $sec));
if (@stream_select($read, $write, $except, $sec, $usec) === false) { if (@stream_select($read, $write, $except, $sec, $usec) === false) {
throw new \RuntimeException('Connection timed out whilst receiving server identification string'); throw new \RuntimeException('Connection timed out whilst receiving server identification string');
} }