Potential timing issue in wifi stack or mbedtls?
Posted: Thu Jan 19, 2017 10:40 am
Hi,
I noticed sporadic issues in a project where I use the mbedTLS functions to connect to a web server with HTTPS, such as blocking mbedtls_ssl_handshake or errors in subsequent read/write operations (e.g. -0x7880). (Well, not really sporadic - it failed about 50% of the time
By trial-and-error, I was able to fix the issues by adding a short 200ms delay after the call to mbedtls_net_connect.
Did anybody else notice the same issue?
cheers
Andreas
I noticed sporadic issues in a project where I use the mbedTLS functions to connect to a web server with HTTPS, such as blocking mbedtls_ssl_handshake or errors in subsequent read/write operations (e.g. -0x7880). (Well, not really sporadic - it failed about 50% of the time
By trial-and-error, I was able to fix the issues by adding a short 200ms delay after the call to mbedtls_net_connect.
Did anybody else notice the same issue?
cheers
Andreas