From 6fb34887c5bf06f5757f35d341bd0e79f5a017d7 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 20 Nov 2016 18:13:01 -0600 Subject: [PATCH] SFTP: change queue size to 32 (max packet size is 32kb so 32*32=1M) --- phpseclib/Net/SFTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 43ad4f54..a3fc89f5 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -413,7 +413,7 @@ class Net_SFTP extends Net_SSH2 ); if (!defined('NET_SFTP_QUEUE_SIZE')) { - define('NET_SFTP_QUEUE_SIZE', 50); + define('NET_SFTP_QUEUE_SIZE', 32); } }