Skip to content

service shutdown information hidden from browsing client #122

@Hendrik-H

Description

@Hendrik-H

When a zeroconf service server is being stopped using Shutdown() a DNS response is being send out with a TTL of zero to inform clients that the service is not active anymore. However a client that is using Browse() is unable to receive this information as this is being filtered out in the mainloop() of the client: https://github.com/grandcat/zeroconf/blob/master/client.go#L276

There are at least two solutions:

  1. Remove the whole filter logic and pass all entries on via params.Entries. This also allows a client to be informed about the latest TTL of the service. Currently a client only gets the first entry but will not receive updates later on.
  2. Pass the entry with TTL = 0 on in case sentEntries contains the service as this indicates that the service information were once passed on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions