From 297f28100188375cf25096fbac2c96556edf5b13 Mon Sep 17 00:00:00 2001 From: Jim Wigginton Date: Sat, 2 Oct 2010 22:23:25 +0000 Subject: [PATCH] - changed the sftp packet size (thanks, achrarajeev!) git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@125 21d32557-59b3-4da0-833f-c5933fad653e --- phpseclib/Net/SFTP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 1477bae0..7c75ce7d 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -48,7 +48,7 @@ * @author Jim Wigginton * @copyright MMIX Jim Wigginton * @license http://www.gnu.org/licenses/lgpl.txt - * @version $Id: SFTP.php,v 1.24 2010-09-02 00:49:26 terrafrost Exp $ + * @version $Id: SFTP.php,v 1.25 2010-10-02 22:23:25 terrafrost Exp $ * @link http://phpseclib.sourceforge.net */ @@ -970,7 +970,7 @@ class Net_SFTP extends Net_SSH2 { $size = $size < 0 ? ($size & 0x7FFFFFFF) + 0x80000000 : $size; - $sftp_packet_size = 34000; // PuTTY uses 4096 + $sftp_packet_size = 4096; // PuTTY uses 4096 $i = 0; while ($sent < $size) { $temp = $mode == NET_SFTP_LOCAL_FILE ? fread($fp, $sftp_packet_size) : $this->_string_shift($data, $sftp_packet_size);