-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
2 changed files
with
136 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters