Skip to content

Commit 80d0461

Browse files
jukkarnashif
authored andcommitted
net: tcp2: Honor TCP retry count limit from Kconfig file
Instead of hardcoded value of 3, use the value from Kconfig file so that user can tweak the TCP retry count. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 28177da commit 80d0461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/ip/tcp2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ LOG_MODULE_REGISTER(net_tcp, CONFIG_NET_TCP_LOG_LEVEL);
2323
#include "tcp2_priv.h"
2424

2525
static int tcp_rto = CONFIG_NET_TCP_INIT_RETRANSMISSION_TIMEOUT;
26-
static int tcp_retries = 3;
26+
static int tcp_retries = CONFIG_NET_TCP_RETRY_COUNT;
2727
static int tcp_window = NET_IPV6_MTU;
2828

2929
static sys_slist_t tcp_conns = SYS_SLIST_STATIC_INIT(&tcp_conns);

0 commit comments

Comments
 (0)