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.)

Kconfig definition

At subsys/net/lib/sockets/Kconfig:46

Included via Kconfig:10Kconfig.zephyr:35subsys/Kconfig:22subsys/net/Kconfig:93subsys/net/lib/Kconfig:31

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" if NET_SOCKETS_ENABLE_DTLS && NET_SOCKETS && NETWORKING
    default 5000 if NET_SOCKETS_ENABLE_DTLS && NET_SOCKETS && NETWORKING
    depends on NET_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.)