Skip to content

Conversation

@agners
Copy link
Collaborator

@agners agners commented Apr 3, 2025

Remove commissionable node browsing from the device controller. It is currently not used and causes additional mDNS traffic.

Remove commissionable node browsing from the device controller. It is
currently not used and causes additional mDNS traffic.
@agners agners added the maintenance Code (quality) improvement or small enhancement which not a new feature label Apr 3, 2025
@agners agners requested a review from marcelveldt April 3, 2025 22:21
Copy link
Collaborator

@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have no idea if this is not in use with any of the lib consumers. There are other projects nowadays depending on our server. Is it really needed to remove this ? I can't imagine this causes that much traffic.

If it is, we need to deprecate it first by logging a warning for a couple of months and then remove it.

@3oris
Copy link

3oris commented Apr 4, 2025

AND/OR you introduce a feature toggle with variant

  1. yielding the deprecation warning alongside the old behaviour
  2. disabling the code in question to reduce mdns traffic for the Home Asisstant use case

Having that toggle in place might also facilitate measuring the actual mdns traffic delta in an otherwise identical setup

@agners
Copy link
Collaborator Author

agners commented Apr 9, 2025

Having that toggle in place might also facilitate measuring the actual mdns traffic delta in an otherwise identical setup

Yeah I was considering something like that, e.g. we could only start active browsing when start_listening command is sent, potentially with an argument.

However, it seems that browsing is actually switching to a passive mode after 4 tries. Having a continuous browse doesn't seem as bad as I initially thought. Given that, and the fact that we might have users using this, let's close this.

@agners agners closed this Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Code (quality) improvement or small enhancement which not a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants