From beddc777d4a5f68c090eba703dfc00bdf73736fb Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Tue, 21 Jun 2022 11:07:19 -0400 Subject: [PATCH] milliseconds not only for DTLS13 --- src/wolfio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wolfio.c b/src/wolfio.c index 89dad8116..2e6b58426 100644 --- a/src/wolfio.c +++ b/src/wolfio.c @@ -2152,9 +2152,9 @@ int MicriumReceive(WOLFSSL *ssl, char *buf, int sz, void *ctx) if (wolfSSL_dtls13_use_quick_timeout(ssl) && IsAtLeastTLSv1_3(ssl->version)) { dtls_timeout = (1000 * dtls_timeout) / 4; - } + } else #endif /* WOLFSSL_DTLS13 */ - + dtls_timeout = 1000 * dtls_timeout; NetSock_CfgTimeoutRxQ_Set(sd, dtls_timeout, &err); if (err != NET_SOCK_ERR_NONE) { WOLFSSL_MSG("NetSock_CfgTimeoutRxQ_Set failed"); @@ -2230,9 +2230,9 @@ int MicriumReceiveFrom(WOLFSSL *ssl, char *buf, int sz, void *ctx) if (wolfSSL_dtls13_use_quick_timeout(ssl) && IsAtLeastTLSv1_3(ssl->version)) { dtls_timeout = (1000 * dtls_timeout) / 4; - } + } else #endif /* WOLFSSL_DTLS13 */ - + dtls_timeout = 1000 * dtls_timeout; NetSock_CfgTimeoutRxQ_Set(sd, dtls_timeout, &err); if (err != NET_SOCK_ERR_NONE) { WOLFSSL_MSG("NetSock_CfgTimeoutRxQ_Set failed");