net: tcp: Allow ACK timeout to be configured
The timeout value when waiting ACK in various TCP states can be configured via Kconfig. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
c9d21ef831
commit
48f9dccc32
2 changed files with 14 additions and 0 deletions
|
@ -129,6 +129,16 @@ config NET_TCP_2MSL_TIME
|
|||
help
|
||||
The value is in seconds.
|
||||
|
||||
config NET_TCP_ACK_TIMEOUT
|
||||
int "How long to wait for ACK (in milliseconds)"
|
||||
depends on NET_TCP
|
||||
default 1000
|
||||
range 1 2147483647
|
||||
help
|
||||
This value affects the timeout when waiting ACK to arrive in
|
||||
various TCP states. The value is in milliseconds. Note that
|
||||
having a very low value here could prevent connectivity.
|
||||
|
||||
config NET_UDP
|
||||
bool "Enable UDP"
|
||||
default y
|
||||
|
|
|
@ -36,7 +36,11 @@
|
|||
|
||||
#define NET_MAX_CONTEXT CONFIG_NET_MAX_CONTEXTS
|
||||
|
||||
#if defined(CONFIG_NET_TCP_ACK_TIMEOUT)
|
||||
#define ACK_TIMEOUT CONFIG_NET_TCP_ACK_TIMEOUT
|
||||
#else
|
||||
#define ACK_TIMEOUT MSEC_PER_SEC
|
||||
#endif
|
||||
|
||||
/* Declares a wrapper function for a net_conn callback that refs the
|
||||
* context around the invocation (to protect it from premature
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue