-
CONFIG_NET_TCP_RETRY_COUNT
¶
Maximum number of TCP segment retransmissions
Type: int
Help¶
The following formula can be used to determine the time (in ms) that a segment will be be buffered awaiting retransmission: n=NET_TCP_RETRY_COUNT Sum((1<<n) * NET_TCP_INIT_RETRANSMISSION_TIMEOUT) n=0 With the default value of 9, the IP stack will try to retransmit for up to 1:42 minutes. This is as close as possible to the minimum value recommended by RFC1122 (1:40 minutes). Only 5 bits are dedicated for the retransmission count, so accepted values are in the 0-31 range. It’s highly recommended to not go below 9, though. Should a retransmission timeout occur, the receive callback is called with -ECONNRESET error code and the context is dereferenced.
Direct dependencies¶
NET_TCP
&& !NET_RAW_MODE
&& NETWORKING
(Includes any dependencies from if’s and menus.)
Defaults¶
- 9 if
NET_TCP
&& !NET_RAW_MODE
&&NETWORKING
Kconfig definition¶
At subsys/net/ip/Kconfig:274
Included via Kconfig:10
→ Kconfig.zephyr:39
→ subsys/Kconfig:24
→ subsys/net/Kconfig:82
Menu path: (top menu) → Networking → IP stack
config NET_TCP_RETRY_COUNT int prompt "Maximum number of TCP segment retransmissions" ifNET_TCP
&& !NET_RAW_MODE
&&NETWORKING
default 9 ifNET_TCP
&& !NET_RAW_MODE
&&NETWORKING
depends onNET_TCP
&& !NET_RAW_MODE
&&NETWORKING
help The following formula can be used to determine the time (in ms) that a segment will be be buffered awaiting retransmission: n=NET_TCP_RETRY_COUNT Sum((1<<n) * NET_TCP_INIT_RETRANSMISSION_TIMEOUT) n=0 With the default value of 9, the IP stack will try to retransmit for up to 1:42 minutes. This is as close as possible to the minimum value recommended by RFC1122 (1:40 minutes). Only 5 bits are dedicated for the retransmission count, so accepted values are in the 0-31 range. It's highly recommended to not go below 9, though. Should a retransmission timeout occur, the receive callback is called with -ECONNRESET error code and the context is dereferenced.
(Definitions include propagated dependencies, including from if’s and menus.)