Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug occurring in mixed resolver lists
Mixed resolver lists with IPv4 and IPv6 resolvers could cause MassDNS to fail sending queries. By default, one IPv4 socket and one IPv6 socket are created to send queries to IPv4 and IPv6 resolvers respectively. Initially, MassDNS would pick a resolver at random and select an appropriate socket. When a timeout occured, MassDNS would then pick a new resolver at random while failing to update the socket. As a result, consecutive queries would fail in each iteration in which the address family of the randomly selected socket would differ from the address family of the socket that was picked initially. When the issue occurred, MassDNS would output "Address family not supported by protocol". While the bug could have led to false negatives, a rough calculation suggests that the impact on the reliability of MassDNS was rather low.
- Loading branch information