1From 288d56ebd68f366d3fa2ee1521120016fb21bf31 Mon Sep 17 00:00:00 2001 2From: wuchangsheng <wuchangsheng2@huawei.com> 3Date: Sat, 17 Dec 2022 19:14:36 +0800 4Subject: [PATCH 1/2] expand recv win 5 6--- 7 src/include/lwip/opt.h | 2 +- 8 src/include/lwipopts.h | 2 +- 9 2 files changed, 2 insertions(+), 2 deletions(-) 10 11diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h 12index 9d41a09..718816b 100644 13--- a/src/include/lwip/opt.h 14+++ b/src/include/lwip/opt.h 15@@ -1483,7 +1483,7 @@ 16 */ 17 #if !defined LWIP_WND_SCALE || defined __DOXYGEN__ 18 #define LWIP_WND_SCALE 1 19-#define TCP_RCV_SCALE 0 20+#define TCP_RCV_SCALE 6 21 #endif 22 23 /** 24diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h 25index d7b9635..907c630 100644 26--- a/src/include/lwipopts.h 27+++ b/src/include/lwipopts.h 28@@ -95,7 +95,7 @@ 29 30 #define TCP_MSS (FRAME_MTU - IP_HLEN - TCP_HLEN) 31 32-#define TCP_WND (40 * TCP_MSS) 33+#define TCP_WND (2500 * TCP_MSS) 34 35 #define TCP_SND_BUF (2500 * TCP_MSS) 36 37-- 382.8.4.windows.1 39 40