Skip to content

Commit 9f20d41

Browse files
committed
Merge branch 'feature/make_tcp_rto_configurable' into 'master'
feat(lw-ip): make LW-IP TCP rto time configurable Closes WIFI-2389 See merge request espressif/esp-idf!9091
2 parents 211cbef + 533bb3c commit 9f20d41

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

components/lwip/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,13 @@ menu "LWIP"
497497
help
498498
Enable this feature to support TCP window scaling.
499499

500+
config LWIP_TCP_RTO_TIME
501+
int "Default TCP rto time"
502+
default 3000
503+
help
504+
Set default TCP rto time for a reasonable initial rto.
505+
In bad network environment, recommend set value of rto time to 1500.
506+
500507
endmenu # TCP
501508

502509
menu "UDP"

components/lwip/port/esp32/include/lwipopts.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@
400400
#define TCP_RCV_SCALE CONFIG_LWIP_TCP_RCV_SCALE
401401
#endif
402402

403+
/**
404+
* LWIP_TCP_RTO_TIME: TCP rto time.
405+
* Default is 3 second.
406+
*/
407+
#define LWIP_TCP_RTO_TIME CONFIG_LWIP_TCP_RTO_TIME
408+
403409
/*
404410
----------------------------------
405411
---------- Pbuf options ----------

0 commit comments

Comments
 (0)