You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be not a trivial feature to implement, because different DNS records making up a service have different TTL. TTL of .local record is typically 2 minutes, and for other records it is usually much longer.
There is also another related problem. If a device with a service was unplugged (not shut down gracefully), its services will live forever in browser.services .
So on the side of the app there is no way to distinguish between a service went offline because its device was unplugged (with no goodbye packet) and a service that is online and diligently sends discovery responses.
Workaround is to recreate the browser object each time I want to call browser.update().
The text was updated successfully, but these errors were encountered:
@ambienthack Thanks for info. We are aware of this issue as it affect our own use of the library in other projects.
We'll keep you posted as updates are made.
This may be not a trivial feature to implement, because different DNS records making up a service have different TTL. TTL of
.local
record is typically 2 minutes, and for other records it is usually much longer.There is also another related problem. If a device with a service was unplugged (not shut down gracefully), its services will live forever in
browser.services
.In my app I tried to call
browser.update()
to make sure that services are still online, but the browser drops responses from already discovered services:So on the side of the app there is no way to distinguish between a service went offline because its device was unplugged (with no goodbye packet) and a service that is online and diligently sends discovery responses.
Workaround is to recreate the browser object each time I want to call
browser.update()
.The text was updated successfully, but these errors were encountered: