mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 10:15:14 +00:00
Update SSH2.php
This commit is contained in:
parent
e2841212cb
commit
40bd4192fc
@ -1243,9 +1243,7 @@ class SSH2
|
|||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
$sec = floor($this->curTimeout);
|
$sec = floor($this->curTimeout);
|
||||||
$usec = 1000000 * ($this->curTimeout - $sec);
|
$usec = 1000000 * ($this->curTimeout - $sec);
|
||||||
// on windows this returns a "Warning: Invalid CRT parameters detected" error
|
if (stream_select($read, $write, $except, $sec, $usec) === false) {
|
||||||
// the !count() is done as a workaround for <https://bugs.php.net/42682>
|
|
||||||
if (stream_select($read, $write, $except, $sec, $usec) === false && !count($read)) {
|
|
||||||
$this->is_timeout = true;
|
$this->is_timeout = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user