-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/http: add ResponseController http2 request without body read deadline test #58282
Conversation
This PR (HEAD: e950604) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/465035 to see it. Tip: You can toggle comments from me using the |
cst := newClientServerTest(t, http2Mode, HandlerFunc(func(w ResponseWriter, req *Request) { | ||
ctl := NewResponseController(w) | ||
if err := ctl.SetReadDeadline(time.Now().Add(1 * time.Millisecond)); err != nil { | ||
t.Errorf("ctl.SetReadDeadline() = %v, want nil", err) | ||
} | ||
time.Sleep(10 * time.Millisecond) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since the 1ms
and 10ms
are related, my I suggest:
cst := newClientServerTest(t, http2Mode, HandlerFunc(func(w ResponseWriter, req *Request) { | |
ctl := NewResponseController(w) | |
if err := ctl.SetReadDeadline(time.Now().Add(1 * time.Millisecond)); err != nil { | |
t.Errorf("ctl.SetReadDeadline() = %v, want nil", err) | |
} | |
time.Sleep(10 * time.Millisecond) | |
cst := newClientServerTest(t, http2Mode, HandlerFunc(func(w ResponseWriter, req *Request) { | |
ctl := NewResponseController(w) | |
duration := 1 * time.Millisecond | |
if err := ctl.SetReadDeadline(time.Now().Add(duration)); err != nil { | |
t.Errorf("ctl.SetReadDeadline() = %v, want nil", err) | |
} | |
time.Sleep(10 * duration) |
e950604
to
3e3a9aa
Compare
This PR (HEAD: 3e3a9aa) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/465035. Important tips:
|
3e3a9aa
to
a87c309
Compare
This PR (HEAD: a87c309) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/465035. Important tips:
|
a87c309
to
05965ef
Compare
This PR (HEAD: 05965ef) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/465035. Important tips:
|
Message from Damien Neil: Patch Set 4: Code-Review+2 Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2023-11-20T21:53:50Z","revision":"d1d4256a142c3ea453627b73541385c5e55ffbb2"} Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Damien Neil: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Go LUCI: Patch Set 4: This CL has failed the run. Reason: Tryjob golang/try/x_tools-gotip-linux-amd64 has failed with summary (view all results): FAILURE
error: failed to run "test golang.org/x/tools module": exit status 1
Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Damien Neil: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
…line test Requires CL 464936 For golang#58237
05965ef
to
30a1090
Compare
This PR (HEAD: 30a1090) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/465035. Important tips:
|
Message from Damien Neil: Patch Set 5: Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Go LUCI: Patch Set 5: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-03-04T17:54:43Z","revision":"e49f0b5dd1a64ebb25c64050aacb5dc4ff11f573"} Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Damien Neil: Patch Set 5: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Go LUCI: Patch Set 5: This CL has failed the run. Reason: Tryjob golang/try/x_tools-gotip-linux-amd64 has failed with summary (view all results): FAILURE
Error: Links: Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Go LUCI: Patch Set 5: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Damien Neil: Patch Set 6: Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Go LUCI: Patch Set 6: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-03-05T22:58:33Z","revision":"797f9ddff3ada5d2adf6ad9fb03c1bd9e2e68f6a"} Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Damien Neil: Patch Set 6: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Go LUCI: Patch Set 6: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Go LUCI: Patch Set 6: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
Message from Michael Knyszek: Patch Set 6: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/465035. |
…line test Requires CL 464936 For #58237 Change-Id: I007b61f0f216d759f8e5327d77affbd9e8f8ff23 GitHub-Last-Rev: 30a1090 GitHub-Pull-Request: #58282 Reviewed-on: https://go-review.googlesource.com/c/go/+/465035 Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
This PR is being closed because golang.org/cl/465035 has been merged. |
Requires CL 464936
For #58237