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:
committed by
Will Cosgrove
parent
508efe4fb4
commit
03d068f00a
@@ -91,7 +91,7 @@
|
|||||||
|
|
||||||
/* This is the maximum packet length to accept, as larger than this indicate
|
/* This is the maximum packet length to accept, as larger than this indicate
|
||||||
some kind of server problem. */
|
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,
|
static int sftp_packet_ask(LIBSSH2_SFTP *sftp, unsigned char packet_type,
|
||||||
uint32_t request_id, unsigned char **data,
|
uint32_t request_id, unsigned char **data,
|
||||||
|
|||||||
Reference in New Issue
Block a user