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

Fixes for non-blocking with larger payload and improvements to the test and examples #373

Closed dgarske closed 7 months ago

dgarske commented 7 months ago
dgarske commented 7 months ago

FYI: I can reproduce the error locally. Getting a disconnected due to protocol error from broker, which for some reason leaves the local broker instance running still:

Broker PID is 29060
1700688555: mosquitto version 2.0.11 starting
1700688555: Config loaded from scripts/broker_test/mosquitto.conf.
1700688555: Opening ipv4 listen socket on port 11883.
1700688555: Opening ipv6 listen socket on port 11883.
1700688555: Opening ipv4 listen socket on port 18883.
1700688555: Opening ipv6 listen socket on port 18883.
1700688555: mosquitto version 2.0.11 running
Base args: -T -C 2000 -h localhost -p 11883
1700688555: New connection from 127.0.0.1:39066 on port 11883.
1700688555: Client <unknown> disconnected due to protocol error.
MQTT Client: QoS 0, Use TLS 0
MQTT Net Init: Success (0)
MQTT Init: Success (0)
NetConnect: Host localhost, Port 11883, Timeout 5000 ms, Use TLS 0
MQTT Socket Connect: Success (0)
MQTT Connect: Proto (v3.1.1), Continue (-101)
MQTT Disconnect: Success (0)
MQTT Socket Disconnect: Success (0)
1700688555: New connection from 127.0.0.1:39072 on port 11883.
1700688555: Client <unknown> disconnected due to protocol error.

Will investigate on Friday.

dgarske commented 7 months ago

Tests with TLS and non-block are failing due to this bug -> https://github.com/wolfSSL/wolfssl/pull/7001

dgarske commented 7 months ago

Customer is fully happy. No outstanding issues. This PR is ready for merge.