-
Michał Kępień authored
When the DNS_FETCHOPT_EDNS512 flag was first introduced [1], it enforced advertising a 512-byte UDP buffer size in an outgoing query. Ever since EDNS processing code got updated [2], that flag has still been set upon detection of certain query timeout patterns, but it has no longer been affecting the calculations of the advertised UDP buffer size in outgoing queries. Restore original semantic meaning of DNS_FETCHOPT_EDNS512 by ensuring the advertised UDP buffer size is set to 512 bytes when that flag is set. Update existing comments and add new ones to improve code readability. [1] see commit 08c90261 [2] see commit 8e15d5eb
d7583e79