From c44b8e6d94ee148657be7b29c44c3d1e1d5caee4 Mon Sep 17 00:00:00 2001 From: Brian Cunnie Date: Tue, 19 Jan 2021 07:23:34 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20`;;=20Warning:=20ID=20mismatch:?= =?UTF-8?q?=20expected=20ID=20x,=20got=20y`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When I ran the following code, I would get at least one of the above messages when run on the Linux CI container: ```bash for i in $(seq 1 32); do dig @localhost asdf +short & done ``` The error hasn't recurred after this change, in spite of running the above code a dozen times. --- bosh-release/src/sslip.io-dns-server/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bosh-release/src/sslip.io-dns-server/main.go b/bosh-release/src/sslip.io-dns-server/main.go index 3d27bd4..e0325e5 100644 --- a/bosh-release/src/sslip.io-dns-server/main.go +++ b/bosh-release/src/sslip.io-dns-server/main.go @@ -13,9 +13,8 @@ func main() { log.Fatal(err.Error()) } - query := make([]byte, 512) - for { + query := make([]byte, 512) _, addr, err := conn.ReadFromUDP(query) if err != nil { log.Println(err.Error())