@@ -392,7 +392,7 @@ menu "LWIP"
392
392
393
393
config LWIP_TCP_SND_BUF_DEFAULT
394
394
int "Default send buffer size"
395
- default 5744 # 4 * default MSS
395
+ default 2880 # 2 * default MSS
396
396
range 2440 65535 if !LWIP_WND_SCALE
397
397
range 2440 1024000 if LWIP_WND_SCALE
398
398
help
@@ -402,14 +402,14 @@ menu "LWIP"
402
402
with lwip_setsockopt(s, TCP_SNDBUF, ...).
403
403
404
404
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.
406
406
407
407
Setting a smaller default SNDBUF size can save some RAM, but
408
408
will decrease performance.
409
409
410
410
config LWIP_TCP_WND_DEFAULT
411
411
int "Default receive window size"
412
- default 5744 # 4 * default MSS
412
+ default 5760 # 4 * default MSS
413
413
range 2440 65535 if !LWIP_WND_SCALE
414
414
range 2440 1024000 if LWIP_WND_SCALE
415
415
help
@@ -429,8 +429,8 @@ menu "LWIP"
429
429
help
430
430
Set TCP receive mail box size. Generally bigger value means higher throughput
431
431
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.
434
434
435
435
TCP receive mail box is a per socket mail box, when the application receives packets
436
436
from TCP socket, LWIP core firstly posts the packets to TCP receive mail box and the
0 commit comments