40 lines
1.0 KiB
Diff
40 lines
1.0 KiB
Diff
From 288d56ebd68f366d3fa2ee1521120016fb21bf31 Mon Sep 17 00:00:00 2001
|
|
From: wuchangsheng <wuchangsheng2@huawei.com>
|
|
Date: Sat, 17 Dec 2022 19:14:36 +0800
|
|
Subject: [PATCH 1/2] expand recv win
|
|
|
|
---
|
|
src/include/lwip/opt.h | 2 +-
|
|
src/include/lwipopts.h | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h
|
|
index 9d41a09..718816b 100644
|
|
--- a/src/include/lwip/opt.h
|
|
+++ b/src/include/lwip/opt.h
|
|
@@ -1483,7 +1483,7 @@
|
|
*/
|
|
#if !defined LWIP_WND_SCALE || defined __DOXYGEN__
|
|
#define LWIP_WND_SCALE 1
|
|
-#define TCP_RCV_SCALE 0
|
|
+#define TCP_RCV_SCALE 6
|
|
#endif
|
|
|
|
/**
|
|
diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h
|
|
index d7b9635..907c630 100644
|
|
--- a/src/include/lwipopts.h
|
|
+++ b/src/include/lwipopts.h
|
|
@@ -95,7 +95,7 @@
|
|
|
|
#define TCP_MSS (FRAME_MTU - IP_HLEN - TCP_HLEN)
|
|
|
|
-#define TCP_WND (40 * TCP_MSS)
|
|
+#define TCP_WND (2500 * TCP_MSS)
|
|
|
|
#define TCP_SND_BUF (2500 * TCP_MSS)
|
|
|
|
--
|
|
2.8.4.windows.1
|
|
|