mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 00:59:48 +01:00
SSH2: timeout would occasionally infinitely loop
this was changed from !$this->curTimeout to $this->curTimeout <= 0
in commit 96c4c3bc58
This commit is contained in:
parent
9c47b0a696
commit
9a7cfafc8d
@ -3351,7 +3351,7 @@ class Net_SSH2
|
||||
$read = array($this->fsock);
|
||||
$write = $except = null;
|
||||
|
||||
if ($this->curTimeout <= 0) {
|
||||
if (!$this->curTimeout) {
|
||||
if ($this->keepAlive <= 0) {
|
||||
@stream_select($read, $write, $except, null);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user