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:
parent
eb61afd22f
commit
71743ce243
@ -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->max_sftp_packet = 1 << 15;
|
||||
|
||||
$this->packet_types = array(
|
||||
1 => 'NET_SFTP_INIT',
|
||||
|
Loading…
Reference in New Issue
Block a user