Fix MQTT client ID mapping in MqttBackend (and derived classes) #15
Labels
No Label
architecture
bug
ci/cd
cleanup
documentation
duplicate
enhancement
good first issue
help wanted
in progress
invalid
new feature
packaging
question
ui
waiting user input
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: platypush/platypush#15
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MqttBackend._get_client
currently stores listeners in a<host, port, handler_id>
mapping.The problem with this approach is that
client_id
defaults to the current device/host name.This means that two listeners that point to the same MQTT broker but subscribe to different sets of channels will have a client ID collision.
In order to prevent this issue, we need to generate a different client ID if a
<host, port>
pair already exists.