commit | 24e19bdeb0f2d062d8e2640d50a7aaf2a7f80e7a | [log] [tgz] |
---|---|---|
author | Tianji Wu <the729@gmail.com> | Fri Jun 07 12:56:05 2019 +0800 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Thu Sep 12 16:07:10 2019 +0000 |
tree | 7f05353be3e4e80bfa690e26b9ac69e655d2e427 | |
parent | a7b16738d86b947dd0fadb08ca2c2342b51958b6 [diff] |
http2: end stream eagerly after sending the request body Check EOF eagerly on the request body when its content-length is specified and it is expected to end. Thus, the data frame containing the last chunk of data of the body will be marked with END_STREAM eagerly. In case the request body is larger than the specified content-length, the request will be aborted and returned with an error. Fixes golang/go#32254 Change-Id: Id24c043c7cc3a41421dfd099a139f1b1e08056b9 Reviewed-on: https://go-review.googlesource.com/c/net/+/181157 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@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.