DTLS Fallback mechanism or faulty config?

Hi @mzombor
As mentioned in this anouncement, Mbed TLS is now maintained under open governance at TrustedFirmware.org.
I would suggest you post your question there, as it doesn’t seem your question is Pelion related.

In addition, as mentioned in this blog :

Until Mbed TLS 3.0 is released, only Long-Term Support (LTS) versions of Mbed TLS 2.x will be released. Feature releases will be targeting Mbed OS only.

This means that version 2.20.0 is not supported.

If you are calling mbedtls_ssl_config_defaults() with MBEDTLS_SSL_TRANSPORT_STREAM, then you shouldn’t have received this error.
Perhaps there is some memory overflow in your system, however this error is checking explicitely if the transport is equal to MBEDTLS_SSL_TRANSPORT_DATAGRAM, so a memory overflow assigning 1 is highly improbable.
Ar eyou sure you don’t have a later call to mbedtls_ssl_conf_transport(&conf, MBEDTLS_SSL_TRANSPORT_DATAGRAM ) ?
Regaqrds,
Mbed Support
Ron