SSH2: close channel when a timeout occurs

This commit is contained in:
terrafrost 2019-06-12 22:06:48 -05:00
parent cd7de5723c
commit 732bda2860

View File

@ -3815,6 +3815,7 @@ class Net_SSH2
// on windows this returns a "Warning: Invalid CRT parameters detected" error
if (!@stream_select($read, $write, $except, $sec, $usec) && !count($read)) {
$this->is_timeout = true;
$this->_close_channel($client_channel);
return true;
}
$elapsed = strtok(microtime(), ' ') + strtok('') - $start;