wolfSSL / wolfMQTT

wolfMQTT is a small, fast, portable MQTT client implementation, including support for TLS 1.3.
https://www.wolfssl.com
GNU General Public License v2.0
518 stars 156 forks source link

By default keep mutex locked if we tried to write #374

Closed dgarske closed 7 months ago

dgarske commented 7 months ago

The wolfSSL TLS engine requires an SSL_Write that returns WANT_WRITE to be called with the same buffer/sz, not a different one, even if no data was sent. If user wants to enable the feature anyways they can use WOLFMQTT_ALLOW_NODATA_UNLOCK. Only the write has this logic as the issue doesn't exist for an SSL_Read.

ZD 16769

dgarske commented 7 months ago

Moved commits into https://github.com/wolfSSL/wolfMQTT/pull/373 to consolidate fixes and testing.