[bug] Nolocal flag for bridges is not respected
See original GitHub issueSystem Information
- Aedes: 0.46.3
- NodeJS: 16.14.2 LTS
- Windows Server
- Arch: x86_64
Describe the bug
If I am not mistaken (and it could easily be that I am mistaken) then the nolocal
flag is not respected by Aedes:
https://github.com/mqtt/mqtt.org/wiki/bridge_protocol
the subscriptions are nolocal (in the JMS sense), to reduce the chances of infinite message loops.
Basically what happens is that when I connect to Aedes broker as a broker and publish a message to the Aedes broker while also subscribing on ‘#’, I receive the message that I have just published.
Could you please point me to the piece of Aedes code where you potentially do something like:
if (subscription.nl === true && targetClient.id === fromClient.id) {
dontSendThePacket()
}
As much as I read the Aedes code, I could not find any nl === true
or similar handling.
Issue Analytics
- State:
- Created a year ago
- Comments:24 (24 by maintainers)
Top Results From Across the Web
Bridge Authority never assigns a Stable flag to bridges
It sounds like a bug, and nobody has a good reason why no bridges have this flag. But it's not necessarily a fire...
Read more >retain bit is not maintained over mosquitto bridge #1293 - GitHub
It MUST set the RETAIN flag to 0 when a PUBLISH Packet is sent to a Client because it matches an established subscription...
Read more >Element Data Errors and Flags
Element records that do not have a matching Structure Number in the NBI will be flagged for the bridge owner's attention, and will...
Read more >Could not resolve symbol [\_PR.CPU0._CPC] - Kernel Bugzilla
Hi Kernel Team, Observe this issue: [ 2.057284] ACPI BIOS Error (bug): Could not resolve symbol [\_PR.CPU0.
Read more >mqtt-v5.0.html - MQTT Version 5.0 - OASIS Open
An error that is detected after the packet has been parsed and found to contain data that is not allowed by the protocol...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Invitation to team sent and repo created: https://github.com/moscajs/aedes-bridge
If you need any help reach me here or also via Github team discussions 😄
Happy to have you in our team 🚀
Thanks, a repo would be nice 👍
With regards to joining the org - sure why not. We are going to use Aedes at work so it kind of make sense to help Aedes. 😊