mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 09:09:39 +01:00
SSH2: keepalive tweak
This commit is contained in:
parent
f0501ff72b
commit
8d567cdf29
@ -3761,9 +3761,12 @@ 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) {
|
||||
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;
|
||||
user_error('Connection closed by server');
|
||||
|
Loading…
Reference in New Issue
Block a user