SFTP: change max sftp packet size

1 << 20 isn't as reliable as 1 << 15 and doesn't seem to result in significant speedup either
This commit is contained in:
terrafrost 2013-09-12 10:16:41 -05:00
parent eb61afd22f
commit 71743ce243

View File

@ -268,14 +268,7 @@ class Net_SFTP extends Net_SSH2 {
{
parent::Net_SSH2($host, $port, $timeout);
switch ($this->server_identifier) {
case 'SSH-2.0-ROSSSH':
// PuTTY uses this as the size
$this->max_sftp_packet = 1 << 15;
break;
default:
$this->max_sftp_packet = 1 << 20;
}
$this->packet_types = array(
1 => 'NET_SFTP_INIT',