diff options
| author | database64128 <free122448@hotmail.com> | 2025-08-27 17:38:13 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-09-14 17:12:25 -0700 |
| commit | 080882a928c96f997a1cb67cef40d2cc6126ffcd (patch) | |
| tree | 36b056b288b7570e4c4bb5f4c37ae5667bf31e1b /test/codegen | |
| parent | ac803b5949f6dbc5bfa559afe506d35f9e1b3195 (diff) | |
| download | go-080882a928c96f997a1cb67cef40d2cc6126ffcd.tar.xz | |
net: use context.AfterFunc in connect
This saves a goroutine when ctx can be but is not canceled during
the connect call.
The redundant fd.Close() call is removed, because the caller closes
the fd on error.
Change-Id: I124d7e480294a48ef74d5650d8ef0489bdfc64d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/699256
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Diffstat (limited to 'test/codegen')
0 files changed, 0 insertions, 0 deletions
