The function send_handler() in src/libiotc/tls/iotc_tls_layer.c does not handle the case where iotc_bsp_tls_write() only writes part of the buffer, due to a size limitation in the mbedtls library (probably also affects wolfssl but I have not checked).
The function
send_handler()
insrc/libiotc/tls/iotc_tls_layer.c
does not handle the case whereiotc_bsp_tls_write()
only writes part of the buffer, due to a size limitation in the mbedtls library (probably also affects wolfssl but I have not checked).A patch is proposed in https://github.com/HolgerGraef/iot-device-sdk-embedded-c/commit/75e193a71975038f02782af38fae3c6d7c0c9a20