Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add non conflict unique messageId support.
In order to avoid messageId allocating and registering conflict, during store processing, publish, subscribe, and unsubscribe functions are enqueued. The enqueued functions are invoked when the store processing will be finished. During the invocation, messageId is allocated. messageIds could be run out. In this case, stop invocation. The rest of functions in the queue are remained. When puback, pubcomp, suback, or unsuback is received, the messageId is deallocated and become reusable, so the queue invocation process is continued.
- Loading branch information