Current application data size in echo_client sample does not fit into a single datagram with DTLS enbled for default IPv6 MTU (1280 bytes). This caused abrupt failure of the sample with DTLS enabled over 802.15.4 L2. Decreasing the application data size allows it to fit into a single UDP datagram after encapsulating it into DTLS record. Additionally, finetune DTLS timeout on echo_server to match UDP application timeout on echo_client (so that a single datagram loss does not cauase DTLS session to end). Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
16 lines
388 B
Plaintext
16 lines
388 B
Plaintext
CONFIG_MAIN_STACK_SIZE=3072
|
|
CONFIG_NET_BUF_RX_COUNT=80
|
|
CONFIG_NET_BUF_TX_COUNT=80
|
|
|
|
# TLS configuration
|
|
CONFIG_MBEDTLS=y
|
|
CONFIG_MBEDTLS_BUILTIN=y
|
|
CONFIG_MBEDTLS_ENABLE_HEAP=y
|
|
CONFIG_MBEDTLS_HEAP_SIZE=60000
|
|
CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=2048
|
|
|
|
CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
|
|
CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=6
|
|
CONFIG_NET_SOCKETS_ENABLE_DTLS=y
|
|
CONFIG_NET_SOCKETS_DTLS_TIMEOUT=30000
|