-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Request thread: handle request on dedicated thread
All requests for all sinks are handled on the reception thread that is the single MQTT thread (handling publish and subscribe cb). As some request may be blocking on IO (mainly accessing the UART of sink), it prevents any publish during that period. Concequences can be noticed only when UART is fully loaded or in case of multiple sinks on same gateway and loading a scratchpad or processing it on one of the gateway. It will delay all messages from the other sink. This patch handles most of the request on a dedicated thread. It will not impact the performances as creating a thread is negligible compare to the time a request can take.
- Loading branch information
1 parent
f9bec2a
commit df58d1c
Showing
2 changed files
with
67 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters