question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Nolocal flag for bridges is not respected

See original GitHub issue

System 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:closed
  • Created a year ago
  • Comments:24 (24 by maintainers)

github_iconTop GitHub Comments

1reaction
robertsLandocommented, May 18, 2022

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 🚀

1reaction
oldrich-scommented, May 17, 2022

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. 😊

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found