Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registered service is not properly unregistered with RMV? #23

Open
soundprojects opened this issue Sep 15, 2018 · 3 comments
Open

Registered service is not properly unregistered with RMV? #23

soundprojects opened this issue Sep 15, 2018 · 3 comments

Comments

@soundprojects
Copy link

When closing a application, the drop method should unregister a registered service but when checking with dns-sd in the terminal, the service is still active.

@quilir
Copy link

quilir commented Sep 15, 2018

dns-sd probably is the well-implemented mDNS querier - it keeps track of all services in the local network. So for a while, it will have cached information about your published server. This crate publisher has TTL 60 seconds if I remember correctly.

So try to ask dns-sd about the service after 1 minute - it should have it removed from the cache.

@soundprojects
Copy link
Author

Ah right, but shouldn't the unregister be a method which actually removes the service from the cache the moment you call it?

@quilir
Copy link

quilir commented Sep 16, 2018

It removes it from memory of the responder. It will not be published anymore.

Continuous queriers, the ones that keep the real-time list of services, have to cache it to not flood the network with queries (e.g. when you would call dns-sd million times a second). dns-sd has the daemon that does it. Command from the terminal only asks that daemon without generating any network traffic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants