Skip to content

net/http: wrong error returned when request canceled via context after CL 546676 ("net/http: simplify HTTP/1 request cancelation"); detected via x/build/buildlet.TestExecTimeoutError failing #67439

Closed
@dmitshur

Description

@dmitshur

As visible on the x/build by Go commit view, TestExecTimeoutError has started to fail consistently at Go tip starting with CL 546676:

=== RUN   TestExecTimeoutError
    buildletclient_test.go:210: cl.Exec error = error copying response: net/http: request canceled; want buildlet: timeout waiting for command to complete
--- FAIL: TestExecTimeoutError (0.00s)

This code in x/build hasn't changed in a long time. Either the test (or what it's testing) in x/build has a problem that is uncovered by the net/http change, otherwise this is a problem in net/http.

CC @neild.

Metadata

Metadata

Assignees

Labels

FixPendingIssues that have a fix which has not yet been reviewed or submitted.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions