commit | fe4d6282115f0528fd5bc04b5644ce8ba1f43a50 | [log] [tgz] |
---|---|---|
author | Bryan C. Mills <bcmills@google.com> | Wed Dec 15 14:03:52 2021 -0500 |
committer | Bryan Mills <bcmills@google.com> | Thu Dec 16 03:09:14 2021 +0000 |
tree | bd7f737f7e7b71ea26ecbc61cdf75e20031f99cc | |
parent | 4ddde0e984e9c8d85913f8a8be88ce66b1b0fbae [diff] |
netutil: streamline and simplify LimitListener tests TestLimitListener had made a lot of assumptions about the kernel's willingness to queue unaccepted connections, and relied on arbitrary timeouts to shed load if the queue saturates. This change eliminates the arbitrary timeouts, replacing them with synchronization and cancellation and leaving only a couple of arbitrary sleeps (that can be exceeded by arbitrary amounts without causing the test to fail). Fixes golang/go#22926 Change-Id: Ibecff6254ec966e1cc98cf96c71493f18d3aaebe Reviewed-on: https://go-review.googlesource.com/c/net/+/372495 Trust: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
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.