Skip to content

Commit

Permalink
Fix out of order PUBACK and PUBLISH handling
Browse files Browse the repository at this point in the history
The current implementation uses task notification to wait for
acknowledgements and incoming publishes and therefore, cannot
differentiate between acknowledgements and incoming publishes. This
causes a crash when an incoming PUBLISH is received before PUBACK for
the previous outgoing publish.

This commit uses an event group to wait for acknowledgements and
incoming publishes. This allows us to differentiate between
acknowledgements and incoming publishes by waiting for different bits.

This was reported here - FreeRTOS#63.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
  • Loading branch information
aggarg committed Apr 24, 2024
1 parent 946494e commit 5174bf7
Showing 1 changed file with 94 additions and 103 deletions.

0 comments on commit 5174bf7

Please sign in to comment.