mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-28 09:38:33 +00:00
Merge branch '3.0'
This commit is contained in:
commit
9a89226a33
@ -3227,9 +3227,11 @@ class SSH2
|
|||||||
}
|
}
|
||||||
|
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
|
if ($this->curTimeout) {
|
||||||
$sec = (int) floor($this->curTimeout);
|
$sec = (int) floor($this->curTimeout);
|
||||||
$usec = (int) (1000000 * ($this->curTimeout - $sec));
|
$usec = (int) (1000000 * ($this->curTimeout - $sec));
|
||||||
stream_set_timeout($this->fsock, $sec, $usec);
|
stream_set_timeout($this->fsock, $sec, $usec);
|
||||||
|
}
|
||||||
$raw = stream_get_contents($this->fsock, $this->decrypt_block_size);
|
$raw = stream_get_contents($this->fsock, $this->decrypt_block_size);
|
||||||
|
|
||||||
if (!strlen($raw)) {
|
if (!strlen($raw)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user