commit | c3c626055bf2f7ed06e40a48a40a2a46cf32785d | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Tue Aug 22 16:44:32 2023 -0700 |
committer | Damien Neil <dneil@google.com> | Thu Sep 07 19:05:03 2023 +0000 |
tree | 3cccbc4fd3f4e3a321c1cb957e20638eff03ccc3 | |
parent | 717519db95f15e62a4b469aa350185dbeaf26804 [diff] |
quic: simplify gate operations Unify the waitAndLockDate and waitOnDone test hooks into a single waitUntil, which takes a func param reporting when the operation is done. Make gate.waitAndLock take a Context, drop waitAndLockContext. Everything that locks a gate passes a Context; there's no need for the context-free variant. Drop gate.waitWithLock, nothing used it. Add a connTestHooks parameter to gate.waitAndLock and queue.get. This parameter is an abstraction layer violation, but pretending we're not always passing it through is just unnecessary confusion. For golang/go#58547 Change-Id: Ifefb73b5a4ae0bac9822a5334117f3b3989f019e Reviewed-on: https://go-review.googlesource.com/c/net/+/524957 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@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.