<feed xmlns='http://www.w3.org/2005/Atom'>
<title>netxduo.git/test/cmake/mqtt/regression, branch dev</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/netxduo.git/atom/test/cmake/mqtt/regression?h=dev</id>
<link rel='self' href='http://cgit.235523.xyz/netxduo.git/atom/test/cmake/mqtt/regression?h=dev'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/netxduo.git/'/>
<updated>2026-08-13T13:18:17Z</updated>
<entry>
<title>Fixed the MQTT client use_tls flag not being reset for a plain reconnect (#400)</title>
<updated>2026-08-13T13:18:17Z</updated>
<author>
<name>Edouard Malot</name>
<email>edouard.malot@gmail.com</email>
</author>
<published>2026-08-13T13:18:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/netxduo.git/commit/?id=af9b219870644bce0081b1ba9f11ca2c996755a9'/>
<id>urn:sha1:af9b219870644bce0081b1ba9f11ca2c996755a9</id>
<content type='text'>
* 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 &lt;noreply@anthropic.com&gt;</content>
</entry>
<entry>
<title>Updated the CMake minimal version.</title>
<updated>2025-02-20T11:55:04Z</updated>
<author>
<name>Frédéric Desbiens</name>
<email>frederic.desbiens@eclipse-foundation.org</email>
</author>
<published>2025-02-20T11:55:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/netxduo.git/commit/?id=8f535ccfccfdade2aa5d3cf482b684429ca312f2'/>
<id>urn:sha1:8f535ccfccfdade2aa5d3cf482b684429ca312f2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add MQTT regression test. (#215)</title>
<updated>2023-12-05T01:11:07Z</updated>
<author>
<name>Wenhui Xie</name>
<email>54433186+wenhui-xie@users.noreply.github.com</email>
</author>
<published>2023-12-05T01:11:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/netxduo.git/commit/?id=d7a47edcafc9f365d9a2526f0c833dccb7797463'/>
<id>urn:sha1:d7a47edcafc9f365d9a2526f0c833dccb7797463</id>
<content type='text'>
</content>
</entry>
</feed>
