Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
- Loading branch information