• Alex A Skinner's avatar
    net: ensure identical queries are not sent multiple times in builtin stub resolver · 854dbb7f
    Alex A Skinner authored
    Prevents non-rooted queries with > ndots dots from being tried twice on error.
    Fixes #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%
    
    LGTM=iant, mikioh.mikioh
    R=golang-codereviews, iant, mikioh.mikioh
    CC=golang-codereviews
    https://golang.org/cl/137870043
    854dbb7f
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...