commit | 02166a98028e80a763c82efaa13e009e6f97bbae | [log] [tgz] |
---|---|---|
author | Marten Seemann <martenseemann@gmail.com> | Fri Aug 26 21:32:54 2022 +0300 |
committer | Gopher Robot <gobot@golang.org> | Mon Sep 26 19:24:36 2022 +0000 |
tree | 3012b053f9c6137bafadf564751e1ad40eb03a4a | |
parent | 8be639271d50c5f812a860bf5b9c21d50f14e8d1 [diff] |
internal/socket: properly reset Iov and Control on the msghdr 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>
This repository holds supplementary Go networking libraries.
The easiest way to install is to run go get -u golang.org/x/net
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/net
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.