1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 04:34:45 +01:00

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); parent::Net_SSH2($host, $port, $timeout);
switch ($this->server_identifier) { $this->max_sftp_packet = 1 << 15;
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( $this->packet_types = array(
1 => 'NET_SFTP_INIT', 1 => 'NET_SFTP_INIT',