mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
Merge branch 'update-auto-channel-close-master'
This commit is contained in:
commit
a9d796f1cd
@ -20,6 +20,7 @@ before_install: true
|
|||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: nightly
|
- php: nightly
|
||||||
|
- 7.4snapshot
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- wget http://ftp.gnu.org/gnu/parallel/parallel-20170822.tar.bz2
|
- wget http://ftp.gnu.org/gnu/parallel/parallel-20170822.tar.bz2
|
||||||
|
@ -3590,7 +3590,9 @@ class SSH2
|
|||||||
// on windows this returns a "Warning: Invalid CRT parameters detected" error
|
// on windows this returns a "Warning: Invalid CRT parameters detected" error
|
||||||
if (!@stream_select($read, $write, $except, $sec, $usec) && !count($read)) {
|
if (!@stream_select($read, $write, $except, $sec, $usec) && !count($read)) {
|
||||||
$this->is_timeout = true;
|
$this->is_timeout = true;
|
||||||
|
if ($client_channel == self::CHANNEL_EXEC && !$this->request_pty) {
|
||||||
$this->close_channel($client_channel);
|
$this->close_channel($client_channel);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$elapsed = microtime(true) - $start;
|
$elapsed = microtime(true) - $start;
|
||||||
@ -3623,7 +3625,7 @@ class SSH2
|
|||||||
switch ($type) {
|
switch ($type) {
|
||||||
case NET_SSH2_MSG_CHANNEL_EXTENDED_DATA:
|
case NET_SSH2_MSG_CHANNEL_EXTENDED_DATA:
|
||||||
/*
|
/*
|
||||||
if ($client_channel == NET_SSH2_CHANNEL_EXEC) {
|
if ($client_channel == self::CHANNEL_EXEC) {
|
||||||
$this->send_channel_packet($client_channel, chr(0));
|
$this->send_channel_packet($client_channel, chr(0));
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user