Skip to content

Commit 02c5155

Browse files
committed
Merge branch 'feature/set_default_snd_buf_to_2880' into 'master'
feat(lw-ip): set default tcp send buffer to 2880 and default receive buffer to 5760 See merge request sdk/ESP8266_RTOS_SDK!1480
2 parents 3e96bff + 9faaaf2 commit 02c5155

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/lwip/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ menu "LWIP"
392392

393393
config LWIP_TCP_SND_BUF_DEFAULT
394394
int "Default send buffer size"
395-
default 5744 # 4 * default MSS
395+
default 2880 # 2 * default MSS
396396
range 2440 65535 if !LWIP_WND_SCALE
397397
range 2440 1024000 if LWIP_WND_SCALE
398398
help
@@ -402,14 +402,14 @@ menu "LWIP"
402402
with lwip_setsockopt(s, TCP_SNDBUF, ...).
403403

404404
This value must be at least 2x the MSS size, and the default
405-
is 4x the default MSS size.
405+
is 2x the default MSS size.
406406

407407
Setting a smaller default SNDBUF size can save some RAM, but
408408
will decrease performance.
409409

410410
config LWIP_TCP_WND_DEFAULT
411411
int "Default receive window size"
412-
default 5744 # 4 * default MSS
412+
default 5760 # 4 * default MSS
413413
range 2440 65535 if !LWIP_WND_SCALE
414414
range 2440 1024000 if LWIP_WND_SCALE
415415
help
@@ -429,8 +429,8 @@ menu "LWIP"
429429
help
430430
Set TCP receive mail box size. Generally bigger value means higher throughput
431431
but more memory. The recommended value is: LWIP_TCP_WND_DEFAULT/TCP_MSS + 2, e.g. if
432-
LWIP_TCP_WND_DEFAULT=14360, TCP_MSS=1436, then the recommended receive mail box size is
433-
(14360/1436 + 2) = 12.
432+
LWIP_TCP_WND_DEFAULT=14440, TCP_MSS=1440, then the recommended receive mail box size is
433+
(14440/1440 + 2) = 12.
434434

435435
TCP receive mail box is a per socket mail box, when the application receives packets
436436
from TCP socket, LWIP core firstly posts the packets to TCP receive mail box and the

0 commit comments

Comments
 (0)