mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-12-18 15:28:15 +00:00
将代理通道的MTU由4KB扩大到1MB
Signed-off-by: breakfei1 <zhangshen6@huawei.com>
This commit is contained in:
parent
9fc9c1b99f
commit
7a7d1ee27e
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user