config: WCHNET_TCP_MSS 576→700, TCP_JSON_MAX_FRAME 4096→800
- WCHNET_TCP_MSS=700: 减少 TCP 分段, 配合 iot_mqtt_send 循环重试 → RECE_BUF_LEN 自动扩至 1400 (原 1152) - TCP_JSON_MAX_FRAME=800: 匹配实际 JSON 帧大小
This commit is contained in:
@@ -36,7 +36,7 @@ extern "C" {
|
||||
/* The number of sockets, the maximum is 31 */
|
||||
#define WCHNET_MAX_SOCKET_NUM (WCHNET_NUM_IPRAW+WCHNET_NUM_UDP+WCHNET_NUM_TCP+WCHNET_NUM_TCP_LISTEN)
|
||||
|
||||
#define WCHNET_TCP_MSS 576 //1024 //1460 /* Size of TCP MSS*/
|
||||
#define WCHNET_TCP_MSS 700 //576 //1024 //1460 /* Size of TCP MSS*/
|
||||
|
||||
#define WCHNET_NUM_POOL_BUF (WCHNET_NUM_TCP*2+2) /* The number of POOL BUFs, the number of receive queues */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user