mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 19:40:28 +00:00
Merge branch 'update-auto-channel-close-1.0' into update-auto-channel-close-2.0
This commit is contained in:
commit
d25a3a9248
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user