Skip to content
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

Fixes for non-blocking edge cases #363

Merged
merged 2 commits into from Oct 27, 2023
Merged

Fixes for non-blocking edge cases #363

merged 2 commits into from Oct 27, 2023

Conversation

dgarske
Copy link
Contributor

@dgarske dgarske commented Oct 20, 2023

  • Fixes for non-blocking publish with payload larger than maximum TX buffer. ZD 16769
  • Fixes for write non-blocking (would block) edge cases.
  • Fix for write position on cancel of message in progress.
  • Added check for zero return on read, which is a compatibility layer indicator for disconnect.
  • Added write WOLFMQTT_TEST_NONBLOCK support.
  • Fix to make sure ctrl+c is honored during a want read/write case.
  • Fix the firmware update example to properly synchronize publish and use a unique topic name.
  • Improve multi-thread test message to use larger size (> tx but) and in test mode check for actual message.
  • Improve remote test done logic.
  • Only run GitHub CI for PR's, not local push.
  • Properly set WOLFMQTT_NO_EXTERNAL_BROKER_TESTS for each test.
  • Use cat for logs, not more.

@dgarske dgarske assigned dgarske and embhorn and unassigned dgarske Oct 20, 2023
@dgarske dgarske requested a review from embhorn October 20, 2023 18:50
embhorn
embhorn previously approved these changes Oct 20, 2023
Copy link
Member

@embhorn embhorn left a comment

Choose a reason for hiding this comment

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

Tested with multithread and non-block

@dgarske dgarske self-assigned this Oct 20, 2023
@dgarske dgarske requested a review from embhorn October 20, 2023 21:10
@dgarske dgarske removed their assignment Oct 20, 2023
@dgarske dgarske assigned dgarske and embhorn and unassigned embhorn Oct 24, 2023
@dgarske dgarske requested review from embhorn and removed request for embhorn October 25, 2023 16:23
@dgarske dgarske force-pushed the pub_cont branch 8 times, most recently from 83aceda to cea5a27 Compare October 27, 2023 17:59
@dgarske dgarske removed their assignment Oct 27, 2023
…buffer. ZD 16769

* Fixes for write non-blocking (would block) edge cases.
* Fix for write position on cancel of message in progress.
* Added check for zero return on read, which is a compatibility layer indicator for disconnect.
* Fix to make sure ctrl+c is honored during a want read/write case.
* Fix the firmware update example to properly synchronize publish and use a unique topic name.
* Improve multi-thread test message to use larger size (> tx but) and in test mode check for actual message.
* Improve remote test done logic.
* Only run GitHub CI for PR's, not local push.
* Properly set `WOLFMQTT_NO_EXTERNAL_BROKER_TESTS` for each test.
* Use cat for logs, not more.
Copy link
Member

@embhorn embhorn left a comment

Choose a reason for hiding this comment

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

Tested with mosquitto installed and uninstalled.
Tested sn-client.

I think just the workflow log cat is an issue.

@@ -88,4 +88,4 @@ jobs:
- name: Show logs on failure
if: failure() || cancelled()
run: |
more test-suite.log
cat test-suite.log
Copy link
Member

Choose a reason for hiding this comment

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

This was failing for me when I tried it. more did not have any problem. I think the error was file "test-suite.log" does not exist

@@ -97,4 +103,4 @@ jobs:
- name: Show logs on failure
if: failure() || cancelled()
run: |
more test-suite.log
cat test-suite.log
Copy link
Member

Choose a reason for hiding this comment

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

Same as above comment

@embhorn embhorn assigned dgarske and unassigned embhorn Oct 27, 2023
@dgarske dgarske changed the title Fix for non-blocking publish with payload larger than maximum TX buffer Fixes for non-blocking edge cases Oct 27, 2023
@embhorn embhorn self-requested a review October 27, 2023 19:40
@embhorn embhorn merged commit f05089c into wolfSSL:master Oct 27, 2023
8 checks passed
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.

None yet

2 participants