-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements to multithread locking and tests. #369
Conversation
4bcb429
to
81931da
Compare
wolfmqtt/mqtt_client.h
Outdated
@@ -496,9 +497,8 @@ WOLFMQTT_API int MqttClient_WaitMessage_ex( | |||
MqttObject *msg, | |||
int timeout_ms); | |||
|
|||
#if defined(WOLFMQTT_MULTITHREAD) || defined(WOLFMQTT_NONBLOCK) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would cancel ever be used outside of non-block or multithread?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other issues discussed in chat
c04dd10
to
7ed741b
Compare
@embhorn let's gets this merged in. I'll followup later with any issues found. |
.github/workflows/ubuntu-check.yml
Outdated
- name: wolfmqtt configure without TLS | ||
env: | ||
WOLFMQTT_NO_EXTERNAL_BROKER_TESTS: 1 | ||
run: ./configure --disable-tls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be better as --enable-all --disable-tls
so that more code paths are enabled
b04ee6a
to
ebd7bab
Compare
165c831
to
ac71e60
Compare
…tial writes on all packet types.
…er "exit" in multi-threaded example.
…se. ZD 16769. Remove extra test non-block in `MqttClient_Publish_ReadPayload` (already handled in `MqttSocket_Read`). Cleanup return code 0=success.
…acket type causing the write state to get reset.
…lti-threaded. If not using non-blocking mode consider it "done".
… encounter this between two thread, just not on same thread).
…r multi-thread. Fix for `--disable-tls` and added tests.
…onses expected (Qos 1 and 2).
… works correctly during testing. Customer is seeing a cancel for an ACK become strayed in the pending response list (investigating).
…nt->lastRc used for debugging.
ac71e60
to
e46c2e9
Compare
1152bfd
to
da5f198
Compare
…examples are setup to support non-blocking.
@embhorn I've sorted out the test issues. This PR is ready to review / merge. |
e5c3605
to
f5b05e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent. Tested various configs including SN client with DTLS and multithread.
MqttClient_Publish_ReadPayload
(already handled inMqttSocket_Read
).