11 Star 76 Fork 100

OpenHarmony / third_party_lwip

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
0042-expand-recv-win.patch 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
Aurora 提交于 2023-12-07 03:26 . update lwip to 2.1.3-39.oe2203sp1
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
1
https://gitee.com/openharmony/third_party_lwip.git
git@gitee.com:openharmony/third_party_lwip.git
openharmony
third_party_lwip
third_party_lwip
master

搜索帮助