You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stop outbound drain when Session hand-off takes its queue. Claim Will before publishing it. Do not report a successful cancel while a reader owns the request. Take the client lock over the Session replay pool in MqttClient_Connect. - #622
Scan targets checked:wolfmqtt-src, wolfmqtt-bugs Coverage: 2 of 5 in-scope changed file(s) opened by the reviewer; not opened: tests/test_broker_connect.c, tests/test_mqtt_client.c, wolfmqtt/mqtt_client.h
Findings: 1 1 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
Scan targets checked:wolfmqtt-src, wolfmqtt-bugs Coverage: 2 of 5 in-scope changed file(s) opened by the reviewer; not opened: tests/test_broker_connect.c, tests/test_mqtt_client.c, wolfmqtt/mqtt_client.h
Fenrir result: Approved ✅
No new issues found in the changed files.
Advisory only — this automated result does not count as a GitHub approval.
A moved write that made partial progress is left unreconciled because only exact completion reaches BrokerOrphan_ReconcileSent. In a nonblocking/custom transport, MqttPacket_Write can return MQTT_CODE_CONTINUE with client.write.pos > 0 after the reentrant handoff. The orphan then retries a partially sent QoS 0 PUBLISH, or retries QoS 1/2 without DUP. Reconcile whenever the moved write either completed or advanced the write position.
Callers ignore CONTINUE and reuse objects still owned by readers
wolfmqtt/mqtt_client.h:899
The new MQTT_CODE_CONTINUE contract is not adopted by the repository's multithreaded callers. For example, examples/multithread/multithread.c:719 calls MqttClient_CancelMessage once and then lets the stack-allocated publish[] go out of scope; the connect, subscribe, ping, and unsubscribe paths also ignore the result. If a reader owns one of those responses, cancellation now returns CONTINUE while the pending node still points into that object, so those paths can reuse or release it despite this new requirement. Update all callers to retry/retain the object, or preserve a blocking cancellation contract.
Scan targets checked:wolfmqtt-src, wolfmqtt-bugs Coverage: 2 of 3 in-scope changed file(s) opened by the reviewer; not opened: tests/test_mqtt_client.c
Findings: 1 1 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
Scan targets checked:wolfmqtt-src, wolfmqtt-bugs Not reviewed (no scan target covers them):tests/include.am Coverage: 2 of 3 in-scope changed file(s) opened by the reviewer; not opened: tests/test_mqtt_client.c
Fenrir result: Approved ✅
No new issues found in the changed files.
Advisory only — this automated result does not count as a GitHub approval.
Scan targets checked:wolfmqtt-src, wolfmqtt-bugs Not reviewed (no scan target covers them):tests/include.am Coverage: 2 of 5 in-scope changed file(s) opened by the reviewer; not opened: tests/test_broker_connect.c, tests/test_mqtt_client.c, wolfmqtt/mqtt_client.h
Findings: 1 1 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
Scan targets checked:wolfmqtt-src, wolfmqtt-bugs Not reviewed (no scan target covers them):tests/include.am Coverage: 1 of 2 in-scope changed file(s) opened by the reviewer; not opened: tests/test_mqtt_client.c
Fenrir result: Approved ✅
No new issues found in the changed files.
Advisory only — this automated result does not count as a GitHub approval.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ZD#22494
Thanks to Gwanhyun Lee for the reports!