mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-14 18:15:39 +01:00
Merge branch '3.0'
This commit is contained in:
commit
5bb28dd86b
@ -479,7 +479,10 @@ class SFTP extends SSH2
|
|||||||
|
|
||||||
$this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_OPEN;
|
$this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_OPEN;
|
||||||
|
|
||||||
$this->get_channel_packet(self::CHANNEL, true);
|
$response = $this->get_channel_packet(self::CHANNEL, true);
|
||||||
|
if ($response === true && $this->isTimeout()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$packet = Strings::packSSH2(
|
$packet = Strings::packSSH2(
|
||||||
'CNsbs',
|
'CNsbs',
|
||||||
@ -517,6 +520,8 @@ class SFTP extends SSH2
|
|||||||
if ($response === false) {
|
if ($response === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
} else if ($response === true && $this->isTimeout()) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_DATA;
|
$this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_DATA;
|
||||||
|
Loading…
Reference in New Issue
Block a user