]> Cypherpunks repositories - gostls13.git/commit
net/http: add tests for Server.ReadTimeout and server.WriteTimeout
authorDamien Neil <dneil@google.com>
Fri, 28 Oct 2022 18:43:13 +0000 (11:43 -0700)
committerDamien Neil <dneil@google.com>
Thu, 10 Nov 2022 18:17:54 +0000 (18:17 +0000)
commit94b03081f43996aa778829596adb7f43d8644308
tree2781d4b76577781609c349ba9530cd313407b313
parent2cea6cdb6016708e89c9472cdb0504731699681d
net/http: add tests for Server.ReadTimeout and server.WriteTimeout

We don't seem to have tests verifying that handler reads from the
request body or writes to the response body time out properly.
Add some.

For #49837
For #56478

Change-Id: I0828edd6c86b071073fd1b22ccbb24f86114ab94
Reviewed-on: https://go-review.googlesource.com/c/go/+/446255
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/net/http/serve_test.go