feat(lwip): make LWIP TCP rto time configurable

This commit is contained in:
yuanjm
2020-07-14 18:12:38 +08:00
committed by bot
parent 0eb17e7601
commit 5c9a5e6b80
3 changed files with 14 additions and 1 deletions

View File

@@ -435,6 +435,13 @@ config LWIP_WND_SCALE
help
Enable this feature to support TCP window scaling.
config LWIP_TCP_RTO_TIME
int "Default TCP rto time"
default 3000
help
Set default TCP rto time for a reasonable initial rto.
In bad network environment, recommend set value of rto time to 1500.
endmenu # TCP
menu "UDP"

View File

@@ -376,6 +376,12 @@
#define TCP_RCV_SCALE CONFIG_TCP_RCV_SCALE
#endif
/**
* LWIP_TCP_RTO_TIME: TCP rto time.
* Default is 3 second.
*/
#define LWIP_TCP_RTO_TIME CONFIG_LWIP_TCP_RTO_TIME
/*
----------------------------------
---------- Pbuf options ----------