mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
fix TCP retransmission interval
This commit is contained in:
@ -333,6 +333,13 @@ menu "LWIP"
|
|||||||
change the memory usage of LWIP, except for preventing
|
change the memory usage of LWIP, except for preventing
|
||||||
new listening TCP connections after the limit is reached.
|
new listening TCP connections after the limit is reached.
|
||||||
|
|
||||||
|
config LWIP_TCP_HIGH_SPEED_RETRANSMISSION
|
||||||
|
bool "TCP high speed retransmissions"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Speed up the TCP retransmission interval. If disabled,
|
||||||
|
it is recommended to change the number of SYN retransmissions to 6,
|
||||||
|
TCP timer interval to 250, and TCP rto time to 3000.
|
||||||
|
|
||||||
config TCP_MAXRTX
|
config TCP_MAXRTX
|
||||||
int "Maximum number of retransmissions of data segments"
|
int "Maximum number of retransmissions of data segments"
|
||||||
@ -343,7 +350,8 @@ menu "LWIP"
|
|||||||
|
|
||||||
config TCP_SYNMAXRTX
|
config TCP_SYNMAXRTX
|
||||||
int "Maximum number of retransmissions of SYN segments"
|
int "Maximum number of retransmissions of SYN segments"
|
||||||
default 6
|
default 6 if !LWIP_TCP_HIGH_SPEED_RETRANSMISSION
|
||||||
|
default 12 if LWIP_TCP_HIGH_SPEED_RETRANSMISSION
|
||||||
range 3 12
|
range 3 12
|
||||||
help
|
help
|
||||||
Set maximum number of retransmissions of SYN segments.
|
Set maximum number of retransmissions of SYN segments.
|
||||||
@ -477,7 +485,8 @@ menu "LWIP"
|
|||||||
|
|
||||||
config LWIP_TCP_RTO_TIME
|
config LWIP_TCP_RTO_TIME
|
||||||
int "Default TCP rto time"
|
int "Default TCP rto time"
|
||||||
default 3000
|
default 3000 if !LWIP_TCP_HIGH_SPEED_RETRANSMISSION
|
||||||
|
default 1500 if LWIP_TCP_HIGH_SPEED_RETRANSMISSION
|
||||||
help
|
help
|
||||||
Set default TCP rto time for a reasonable initial rto.
|
Set default TCP rto time for a reasonable initial rto.
|
||||||
In bad network environment, recommend set value of rto time to 1500.
|
In bad network environment, recommend set value of rto time to 1500.
|
||||||
|
Reference in New Issue
Block a user