commit | 59133d7f0dd7cb4ec46ee7b17b1b71cff79e0309 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Mon May 18 20:57:45 2020 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Wed May 20 00:47:42 2020 +0000 |
tree | ec74d4e24a79fa5d27dd57973932b360ec132664 | |
parent | d87ec0cfa47603df72c7e24116080bdcd7788ba7 [diff] |
http2: read request in TestTransportBodyLargerThanXXX Otherwise the server can stop the connection before clientStream.writeRequestBody has a chance to see if there is any more data beyond the specified content length. Tested by adding time.Sleep(time.Millisecond) to chunkReader.Read, which caused the test to reliably fail before this change, and reliably pass afterward. Fixes golang/go#34616 Change-Id: I119bdf01bf916b2ded2c5d293655cba2596c0166 Reviewed-on: https://go-review.googlesource.com/c/net/+/234523 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
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.