skip edns frag retry if advertised udp payload size is not smaller #987
+22
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
If a serviced query is in UDP_EDNS_FRAG mode, and EDNS_ADVERTISED_SIZE is 1232 (the default) or less, then the retry will have the same edns udp payload size with the same result.
This patch will, if the advertised udp payload size is not smaller, increase the retry count and continue until answer or no more targets to forward to.
I used this conf to test and the following firewall rule to drop responses and cause timeout net event.
I have added pre and post patch pcap files in pcapfiles.tar.gz. The pre file has 9 (I was expecting 10) requests to 8.8.8.8 and the post file has the expected 5 requests before servfail.
Kind regards and a happy new year 2024!