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

Duplicate updates for services #3

Open
bouk opened this issue Sep 10, 2024 · 0 comments
Open

Duplicate updates for services #3

bouk opened this issue Sep 10, 2024 · 0 comments

Comments

@bouk
Copy link

bouk commented Sep 10, 2024

Hi there,

Thanks for this package, I think there's a good compliant dns-sd package still missing for JS. I'm observing something weird, I tried using the browse example, extended to also send a message when the service is no longer active. I'm getting a lot of duplicate active messages (even when the service isn't updated) and unexpected inactive messages, rapidly following each other. I think something is broken in the expiration logic.

I'd expect only a single message to show up when a service becomes active and then no more unless it actually updates.

Output

📡 arcade-C5a@w2d - 10.201.1.7:3031
🔕 arcade-C5a@w2d
📡 arcade-C5a@w2d - 10.201.1.7:3031
📡 arcade-C5a@w2d - 10.201.1.7:3031
📡 arcade-C5a@w2d - 10.201.1.7:3031
📡 arcade-C5a@w2d - 10.201.1.7:3031
📡 arcade-C5a@w2d - 10.201.1.7:3031
📡 arcade-C5a@w2d - 10.201.1.7:3031
📡 arcade-C5a@w2d - 10.201.1.7:3031
📡 arcade-C5a@w2d - 10.201.1.7:3031
... etc ...

Expected output

📡 arcade-C5a@w2d - 10.201.1.7:3031
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

1 participant