From 6f4af7ee05c605a0d74086517e6a2c4c5383d76f Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 22 Nov 2024 17:12:10 -0600 Subject: [PATCH 1/2] SSH2: extra_packets is no longer used --- phpseclib/Net/SSH2.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index ed297884..40066c5b 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -1103,14 +1103,6 @@ class Net_SSH2 */ var $smartMFA = true; - /** - * Extra packets counter - * - * @var bool - * @access private - */ - var $extra_packets; - /** * Bytes Transferred Since Last Key Exchange * From e81fd6899ba8167be7152e085e4c5a2b2c40cea0 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 22 Nov 2024 17:13:52 -0600 Subject: [PATCH 2/2] SSH2: rm changes i made for debugging --- phpseclib/Net/SSH2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index a28746c7..619289bc 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -1133,7 +1133,7 @@ class SSH2 * * @var int */ - private $doKeyReexchangeAfterXBytes = 256 * 1024; + private $doKeyReexchangeAfterXBytes = 1024 * 1024 * 1024; /** * Has a key re-exchange been initialized?