Skip to content

Commit c98bffa

Browse files
MarkusLassilarlubos
authored andcommitted
applications: serial_lte_modem: Fix timeouts with nativetls
Default timeout for TCP, TLS and DTS connections is 3 seconds, which does not account for network issues. Increase timeout to 30 seconds. Signed-off-by: Markus Lassila <[email protected]>
1 parent 91dd66b commit c98bffa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

applications/serial_lte_modem/overlay-native_tls.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ CONFIG_MBEDTLS_DTLS=y
3838
CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID=y
3939
CONFIG_NET_SOCKETS_ENABLE_DTLS=y
4040
CONFIG_NET_IPV4=y
41+
# Maximum timeout for TCP, TLS and DTLS connections
42+
CONFIG_NET_SOCKETS_CONNECT_TIMEOUT=30000
4143
# Enable AES
4244
CONFIG_MBEDTLS_AES_C=y
4345
CONFIG_MBEDTLS_CCM_C=y

0 commit comments

Comments
 (0)