GoogleCloudPlatform / iot-device-sdk-embedded-c

Cloud IoT Device SDK for Connectivity to IoT Core.
Other
247 stars 83 forks source link

MQTT packets with length > MBEDTLS_SSL_OUT_CONTENT_LEN are not fully transmitted #117

Open hgrf opened 3 years ago

hgrf commented 3 years ago

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).

A patch is proposed in https://github.com/HolgerGraef/iot-device-sdk-embedded-c/commit/75e193a71975038f02782af38fae3c6d7c0c9a20