• 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
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
liblink Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
androidtest.bash Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
nacltest.bash Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...