Potential timing issue in wifi stack or mbedtls?

aschweiz
Posts: 22
Joined: Wed Nov 30, 2016 1:57 pm

Potential timing issue in wifi stack or mbedtls?

Postby aschweiz » 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

Who is online

Users browsing this forum: No registered users and 32 guests