-
CONFIG_NET_SOCKETS_DTLS_TIMEOUT
¶
Timeout value in milliseconds for DTLS connection
Type: int
Help¶
This variable specifies time in milliseconds after which DTLS connection is considered dead by TLS server and DTLS resources are freed. This is needed to prevent situation when DTLS client shuts down without closing connection gracefully, which can prevent other peers from connecting. Value of 0 indicates no timeout - resources will be freed only when connection is gracefully closed by peer sending TLS notification or socket is closed.
Direct dependencies¶
NET_SOCKETS_ENABLE_DTLS
&& NET_SOCKETS
&& NETWORKING
(Includes any dependencies from if’s and menus.)
Defaults¶
- 5000 if
NET_SOCKETS_ENABLE_DTLS
&&NET_SOCKETS
&&NETWORKING
Kconfig definition¶
At subsys/net/lib/sockets/Kconfig:65
Included via Kconfig:10
→ Kconfig.zephyr:39
→ subsys/Kconfig:24
→ subsys/net/Kconfig:84
→ subsys/net/lib/Kconfig:29
Menu path: (top menu) → Networking → Network Libraries → BSD Sockets compatible API
config NET_SOCKETS_DTLS_TIMEOUT int prompt "Timeout value in milliseconds for DTLS connection" ifNET_SOCKETS_ENABLE_DTLS
&&NET_SOCKETS
&&NETWORKING
default 5000 ifNET_SOCKETS_ENABLE_DTLS
&&NET_SOCKETS
&&NETWORKING
depends onNET_SOCKETS_ENABLE_DTLS
&&NET_SOCKETS
&&NETWORKING
help This variable specifies time in milliseconds after which DTLS connection is considered dead by TLS server and DTLS resources are freed. This is needed to prevent situation when DTLS client shuts down without closing connection gracefully, which can prevent other peers from connecting. Value of 0 indicates no timeout - resources will be freed only when connection is gracefully closed by peer sending TLS notification or socket is closed.
(Definitions include propagated dependencies, including from if’s and menus.)