SSH2: keepalive tweak

This commit is contained in:
terrafrost 2020-12-16 08:26:03 -06:00
parent f0501ff72b
commit 8d567cdf29
1 changed files with 5 additions and 2 deletions

View File

@ -3761,8 +3761,11 @@ class Net_SSH2
$this->binary_packet_buffer = false;
} else {
$response = $this->_get_binary_packet(true);
if ($response === true && $this->is_timeout && $client_channel == NET_SSH2_CHANNEL_EXEC && !$this->request_pty) {
$this->_close_channel($client_channel);
if ($response === true && $this->is_timeout)) {
if ($client_channel == NET_SSH2_CHANNEL_EXEC && !$this->request_pty) {
$this->_close_channel($client_channel);
}
return true;
}
if ($response === false) {
$this->bitmap = 0;