-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MinMdns - do not reset hasIP/hasHostPort on partial failure (#18114)
* MinMdns - do not reset hasIP/hasHostPort on partial failure MinMdns can receive several packets and if any of the packets are ok, a single valid ip or host/port is sufficient. In practice, this was failing on mdns on ipv6 only builds when both ipv6 and ipv4 were sent in order. Specifically: - MDNS packet contains AAAA followed by A - Resolver parses AAAA and sets a valid IP - Resolver sees A and fails to parse (no IPv4 support) and resets valid IP As a result, dns resolution was never calling complete (because it thinks no valid IPs). * Add some logs that would have helped debugging incomplete/invalid packets * Add more logging for all paths that may result in "invalid node" * Code review update and add missing return
- Loading branch information
Showing
1 changed file
with
32 additions
and
9 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