]> Cypherpunks repositories - gostls13.git/commit
net: retry with bigger buffer in resSearch
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Thu, 1 Dec 2022 17:54:49 +0000 (17:54 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 1 Dec 2022 21:00:45 +0000 (21:00 +0000)
commit93587d3591f6cb5cd21951a03c3aa750873f2601
tree9e5aa5d200d9c40f2e453b2a8a5afbbd74ed5296
parent7e92b80c21ea22b9dcfb27cc68c61b805485f379
net: retry with bigger buffer in resSearch

Glibc returns size > bufSize, when the entire dns reply does not fit inside the provided buffer.

Change-Id: Ie1c1c6a3411880bd8bdb4371f1f1b7bcce837ea2
GitHub-Last-Rev: 488cd3ed0db2a86433aa921117b8f1e9192b1fa5
GitHub-Pull-Request: golang/go#57020
Reviewed-on: https://go-review.googlesource.com/c/go/+/454395
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
src/net/cgo_unix.go