Merge branch 'update-auto-channel-close-1.0' into update-auto-channel-close-2.0

This commit is contained in:
terrafrost 2019-07-12 07:38:47 -05:00
commit d25a3a9248

View File

@ -3712,7 +3712,9 @@ class 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);
if ($client_channel == NET_SSH2_CHANNEL_EXEC && !$this->request_pty) {
$this->_close_channel($client_channel);
}
return true;
}
$elapsed = microtime(true) - $start;