将代理通道的MTU由4KB扩大到1MB

Signed-off-by: breakfei1 <zhangshen6@huawei.com>
This commit is contained in:
breakfei1 2022-11-24 20:27:53 +08:00
parent 9fc9c1b99f
commit 7a7d1ee27e
3 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@
#define DEFAULT_MAX_MESSAGE_LEN (4 * 1024)
#define DEFAULT_AUTH_MAX_BYTES_LEN (40000 - 8)
#define DEFAULT_AUTH_MAX_MESSAGE_LEN (4 * 1024)
#define DEFAULT_PROXY_MAX_BYTES_LEN (4 * 1024)
#define DEFAULT_PROXY_MAX_BYTES_LEN (1024 * 1024)
#define DEFAULT_PROXY_MAX_MESSAGE_LEN (1 * 1024)
#define DEFAULT_IS_SUPPORT_TCP_PROXY 1
#elif defined SOFTBUS_SMALL_SYSTEM

View File

@ -76,7 +76,7 @@ typedef struct {
#define ENCRYPTED 0x1
#define AUTH_SERVER_SIDE 0x2
#define USE_BLE_CIPHER 0x4
#define PROXY_BYTES_LENGTH_MAX (4 * 1024)
#define PROXY_BYTES_LENGTH_MAX (1024 * 1024)
#define PROXY_MESSAGE_LENGTH_MAX 1024
#define IDENTITY_LEN 32

View File

@ -602,7 +602,7 @@ int32_t TransProxyNotifySession(const char *pkgName, int32_t pid, int32_t channe
int32_t TransProxySessionDataLenCheck(uint32_t dataLen, ProxyPacketType type)
{
#define PROXY_MAX_BYTES_LEN (4 * 1024)
#define PROXY_MAX_BYTES_LEN (1024 * 1024)
#define PROXY_MAX_MESSAGE_LEN (1 * 1024)
switch (type) {
case PROXY_FLAG_MESSAGE: