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