-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mdns] fixes of mDNS subscriptions (#2148)
This commit covers following things: - Previously we didn't handle the removal of addresses properly when resolving a host/service. This causes an issue that when there's an ongoing browse of a specific service type (`_trel._udp`, for example), the callback of `OnServiceResolved` will also give stale addresses of the resolved host. - In mDNSResponder implementation, we used a flag `kDNSServiceFlagsTimeout` which prevents from doing an ongoing service instance resolution. I removed this flag so that it does an ongoing resolution. The new behavior aligns better with the `Mdns::Publisher`'s API definition. - In mDNSResponder implementation, don't remove the service instance resolution after an address is resolved. This allows the implementation to return multiple addresses. - Added a unit test for mDNS subscribers.
- Loading branch information
Showing
7 changed files
with
454 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.