aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorMateusz Poliwczak <mpoliwczak34@gmail.com>2022-08-21 20:33:42 +0000
committerGopher Robot <gobot@golang.org>2022-08-22 23:16:09 +0000
commitcd52818487fade395c4d9189ce6e70cc03aeecb2 (patch)
treeca066313a536e6530978d7ccf1299c0ca09b6990 /src/encoding
parentae303ff282feed715de0374890737ccdaee1e053 (diff)
downloadgo-cd52818487fade395c4d9189ce6e70cc03aeecb2.tar.xz
net: turn off dns compression for go resolver queries
We don't need compression enabled here, because we only set one question in the dns message. So there is nothing to compress. Also it reduces 8 allocs per LookupHost. Change-Id: I0968f837011daf6d7a7b22d9af4a8cc5b2878f4c GitHub-Last-Rev: 7eb3362bcaa86f47c9d975375b54c7177e8dd15e GitHub-Pull-Request: golang/go#54576 Reviewed-on: https://go-review.googlesource.com/c/go/+/425043 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions