Skip to content

Preserve nonblocking enhanced authentication state - #574

Merged
embhorn merged 1 commit into
wolfSSL:masterfrom
aidangarske:fix/enhanced-auth-nonblocking-state
Aug 13, 2026
Merged

Preserve nonblocking enhanced authentication state#574
embhorn merged 1 commit into
wolfSSL:masterfrom
aidangarske:fix/enhanced-auth-nonblocking-state

Conversation

@aidangarske

Copy link
Copy Markdown
Member
F-8598

@aidangarske aidangarske self-assigned this Aug 12, 2026
Copilot AI lite review requested due to automatic review settings August 12, 2026 21:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the MQTT v5 client’s enhanced-authentication flow to preserve state across nonblocking/multi-threaded retries, avoiding loss of in-flight AUTH progress during MqttClient_Connect.

Changes:

  • Refactors AUTH handling into a reusable internal helper (MqttClient_AuthEx) that can operate on caller-supplied state and packet objects.
  • Extends MqttClient_WaitType to optionally drive its state machine from an external MqttMsgStat, enabling CONNECT-enhanced-auth to persist state across nonblocking calls.
  • Adds multi-threaded coordination around reuse of client->packetAck while automatic AUTH is pending.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/mqtt_client.c
@aidangarske
aidangarske requested a review from embhorn August 12, 2026 21:15

@embhorn embhorn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would like to see a test case

@aidangarske
aidangarske requested a review from embhorn August 12, 2026 22:26
@embhorn
embhorn merged commit 05d3374 into wolfSSL:master Aug 13, 2026
47 checks passed
@aidangarske
aidangarske deleted the fix/enhanced-auth-nonblocking-state branch August 13, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants