net/tcp/Kconfig, include/nuttx/net/netconfig.h: Make RTO and WAIT_TIME configurable. This fix is not really correct: TCP RTO really should be calculated dynamically for each TCP connection: http://sgros.blogspot.com/2012/02/calculating-tcp-rto.html.

This commit is contained in:
zhangyuan7
2019-08-26 11:03:27 -06:00
committed by Gregory Nutt
parent 32bac84548
commit ba598841e5
2 changed files with 28 additions and 9 deletions
+12
View File
@@ -41,6 +41,18 @@ config NET_TCP_CONNS
---help---
Maximum number of TCP/IP connections (all tasks)
config NET_TCP_RTO
int "RTO of TCP/IP connections"
default 3
---help---
RTO of TCP/IP connections (all tasks)
config NET_TCP_WAIT_TIMEOUT
int "TIME_WAIT Length of TCP/IP connections"
default 120
---help---
TIME_WAIT Length of TCP/IP connections (all tasks)
config NET_MAX_LISTENPORTS
int "Number of listening ports"
default 20