net.mbedtls: define MBEDTLS_THREADING_PTHREAD, in mbedtls_config.h; call C.mbedtls_ssl_conf_read_timeout explicitly in the wrapper, with a shorter timeout value of 317ms (determined experimentally)

This commit is contained in:
Delyan Angelov 2024-11-20 23:42:01 +02:00
parent fbc3fc6fcf
commit 4b015c8bc0
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
3 changed files with 9 additions and 3 deletions

View file

@ -1903,7 +1903,7 @@
*
* Uncomment this to enable pthread mutexes.
*/
//#define MBEDTLS_THREADING_PTHREAD
#define MBEDTLS_THREADING_PTHREAD
/**
* \def MBEDTLS_USE_PSA_CRYPTO
@ -3283,7 +3283,7 @@
*
* Enable this layer to allow use of mutexes within mbed TLS
*/
//#define MBEDTLS_THREADING_C
#define MBEDTLS_THREADING_C
/**
* \def MBEDTLS_TIMING_C