Descriptionnet: ensure identical queries are not sent multiple times in unix stub resolver
Prevents non-rooted queries with > ndots dots from being tried twice on error.
Fixes issue 8616.
Benchmark results on linux/amd64
benchmark old ns/op new ns/op delta
BenchmarkGoLookupIPNoSuchHost 8212394 4413293 -46.26%
benchmark old allocs new allocs delta
BenchmarkGoLookupIPNoSuchHost 216 108 -50.00%
benchmark old bytes new bytes delta
BenchmarkGoLookupIPNoSuchHost 17460 8726 -50.02%
Patch Set 1 #Patch Set 2 : diff -r 25c3a04e7b95fac3cfe0bb1cb7d10b577674ec63 https://code.google.com/p/go #Patch Set 3 : diff -r 25c3a04e7b95fac3cfe0bb1cb7d10b577674ec63 https://code.google.com/p/go #
MessagesTotal messages: 5
|