zeroconf-rs icon indicating copy to clipboard operation
zeroconf-rs copied to clipboard

Question: how are name collisions handled?

Open bmulder-innoseis opened this issue 2 years ago • 1 comments

I want to be able to publish multiple instances of the same service running in the network on different hosts. In avahi, there is a specific way to handle collision errors, and a default way to change the name (calling avahi_alternative_service_name, works by appending "#1", "#2", etc.) How is this done in this library?

bmulder-innoseis avatar Apr 21 '22 09:04 bmulder-innoseis

This is not currently handled, please feel free to open a pull request with an integration of avahi_alternative_service_name and some Bonjour equivalent

windy1 avatar Apr 21 '22 16:04 windy1

This has been a long time coming but I've started to implement this in #40

I'm having some trouble actually triggering a name collision in Avahi while testing. Is this something you had experience with? Thanks.

windy1 avatar Nov 09 '23 05:11 windy1

Resolved in https://github.com/windy1/zeroconf-rs/pull/40

windy1 avatar Jan 28 '24 17:01 windy1