mirror of
https://github.com/golang/net.git
synced 2026-04-01 02:47:08 +09:00
A sync.Pool is used to reduce allocations of the msghdr struct. When using a struct obtained from the pool, the fields need to be cleared. Fixes golang/go#54693. Change-Id: Ie693979abf3aa6bc3c834b9558c5029b376326e6 Reviewed-on: https://go-review.googlesource.com/c/net/+/425915 Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>