diff options
| author | Damien Neil <dneil@google.com> | 2024-05-16 16:26:04 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-05-17 15:58:58 +0000 |
| commit | a61729b880f731bf89f40c5c0366cdeb61108753 (patch) | |
| tree | 2dc509b7b1ff526bd17bc4a9f0a41dc683034537 /src/database/sql | |
| parent | 2c635b68fdc8ddf83208ed2ec65eff09a3af58b8 (diff) | |
| download | go-a61729b880f731bf89f40c5c0366cdeb61108753.tar.xz | |
net/http: return correct error when reading from a canceled request body
CL 546676 inadvertently changed the error returned when reading
from the body of a canceled request. Fix it.
Rework various request cancelation tests to exercise all three ways
of canceling a request.
Fixes #67439
Change-Id: I14ecaf8bff9452eca4a05df923d57d768127a90c
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-linux-amd64-longtest-race
Reviewed-on: https://go-review.googlesource.com/c/go/+/586315
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions
