aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorkkhaike <kkhaike@gmail.com>2023-12-16 18:08:16 +0800
committerGopher Robot <gobot@golang.org>2024-02-19 20:51:15 +0000
commitaaf8e844edaa7cbd09d0fdeb9bd0b7458cbfb466 (patch)
tree6a0ef1b0817ae247841b98325b433ce9541c9ed4 /src/runtime
parente5f4c68c44f6038f1d3e651d3f387121ec6cd7c3 (diff)
downloadgo-aaf8e844edaa7cbd09d0fdeb9bd0b7458cbfb466.tar.xz
net: prevent unintended retries upon receiving an empty answer response from the DNS server.
CL https://golang.org/cl/37879 migrates DNS message parsing to the golang.org/x/net/dns/dnsmessage package. However, during the modification of the "lame referral" error check introduced by CL https://golang.org/cl/22428, a condition was overlooked. This omission results in unexpected retries when a DNS server returns an empty response (not an invalid response, but one that includes an additional section). Fixes #57697 Fixes #64783 Change-Id: I203896aa2902c305569005c1712fd2f9f13a9b6b Reviewed-on: https://go-review.googlesource.com/c/go/+/550435 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Ian Lance Taylor <iant@golang.org> Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Dexter Ouyang <kkhaike@gmail.com>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions