commit | 2b766c08f1c03ae7696373f3be058345328e5be0 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Wed Oct 13 10:29:31 2021 -0700 |
committer | Damien Neil <dneil@google.com> | Thu Oct 14 17:25:44 2021 +0000 |
tree | 3425442ab9a97b92d439ba14ee60e88d4a6b28ab | |
parent | e13a2654a71e8d479c387f1c45c295c956910cf7 [diff] |
http2: deflake TestTransportReqBodyAfterResponse_200 Don't send the END_STREAM flag from the server until the client sends its END_STREAM. Avoids a flaky failure when the client sends the END_STREAM in a zero-length DATA frame: - The server reads bodySize bytes and half-closes the stream. - The client's Response.Body returns EOF. - The test calls Response.Body.Close. - The client resets the stream. Avoid hanging forever on the client side of the test if the server side exits with an error. Fixes golang/go#48970 Change-Id: Ic921a3f60149abbb5434ec7a53985becea7b23c3 Reviewed-on: https://go-review.googlesource.com/c/net/+/355649 Trust: Damien Neil <dneil@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com>
This repository holds supplementary Go networking libraries.
The easiest way to install is to run go get -u golang.org/x/net
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/net
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.