1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-23 01:22:37 +03:00

SFTP: increase maximum packet size to 256K (#268)

to match implementations like OpenSSH.
This commit is contained in:
Zhen-Huan HWANG
2019-02-13 00:18:26 +01:00
committed by Will Cosgrove
parent 508efe4fb4
commit 03d068f00a

View File

@@ -91,7 +91,7 @@
/* This is the maximum packet length to accept, as larger than this indicate
some kind of server problem. */
#define LIBSSH2_SFTP_PACKET_MAXLEN 80000
#define LIBSSH2_SFTP_PACKET_MAXLEN (256 * 1024)
static int sftp_packet_ask(LIBSSH2_SFTP *sftp, unsigned char packet_type,
uint32_t request_id, unsigned char **data,