1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-03 18:18:05 +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:
terrafrost 2021-05-14 12:55:06 -05:00
parent 9c47b0a696
commit 9a7cfafc8d

View File

@ -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 {