we meet an problem about TLS connection broken,we had ported MBedTLS on our platform. Our application is based on MQTT, The connection is always broken after some time running(about more than 10 minutes), the return error code is MBEDTLS_ERR_NET_RECV_FAILED (-0x004C),after the connection is broken.,we have to connect again. but the connecting process should be last for long time(for our MCU poor capablity). Is there any quick method to resume TLS connection? Thank you!
Thank you for your question.
You should check your network stack to understand why the connection got broken.
Is there any quick method to resume TLS connection? Thank you!
Have you considered using session resumption? You could look at the
ssl_client2 example to understand how to do it.
Mbed TLS Support