summaryrefslogtreecommitdiff
path: root/test/cmake/mqtt
AgeCommit message (Collapse)Author
2026-08-13Fixed the MQTT client use_tls flag not being reset for a plain reconnect (#400)Edouard Malot
* Fix MQTT client: reset use_tls flag in connection_end (TLS to plain reconnect) _nxd_mqtt_client_secure_connect sets nxd_mqtt_client_use_tls = 1 before delegating to _nxd_mqtt_client_connect, but the flag is never cleared afterwards. A subsequent non-secure connect on the same client inherits the stale flag, triggers nx_secure_tls_session_start on a plain TCP socket, and returns NXD_MQTT_CONNECT_FAILURE (0x10005). Clear the flag in _nxd_mqtt_client_connection_end, after the TCP socket is disconnected and unbound: while the socket can still deliver data, a late TLS record (e.g. the peer's close_notify) must keep failing through the TLS receive path rather than being parsed as plaintext MQTT bytes. Clearing the flag before the socket teardown would let such a record be misread as a partial MQTT message and parked forever in nxd_mqtt_client_processing_packet, leaking a packet (caught by netx_mqtt_packet_leak_test). * Clean nxd_mqtt_client_use_tls on connect failure * Complete the caller list of _nxd_mqtt_client_connection_end * Add a regression test for a plain connection after a secure one --------- Co-authored-by: Claude Fable 5 <[email protected]>
2026-06-06Added copyright headers to files missing themFrédéric Desbiens
Applied the standard MIT license header to all project-owned C, header, assembly, shell, and Python files that were missing a copyright notice. Third-party, toolchain startup, and auto-generated files were excluded. Co-authored-by: Copilot <[email protected]>
2026-03-06Restored build and run scripts to their prior versions.Frédéric Desbiens
2025-05-15Try to help user if build script failsHuan Nguyen
A common error condition is that the user cloned the repo without the --recursive option. We'll try to get the submodules for them. We remove the git clone command because the submodule update should fix the issue.
2025-02-20Updated the CMake minimal version.Frédéric Desbiens
2024-01-12Update link in the run.shTiejunZhou
2023-12-05Add MQTT regression test. (#215)Wenhui Xie