summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorDamien Neil <dneil@google.com>2023-03-01 15:17:35 -0800
committerDamien Neil <dneil@google.com>2023-03-07 22:52:18 +0000
commit457fd1d52d17fc8e73d4890150eadab3128de64d (patch)
tree63f4721598847e5a894b82dd1c52ba6d08d765a8 /api
parent73ca5c0dace9e43330d92b751547759075d3b828 (diff)
downloadgo-git-457fd1d52d17fc8e73d4890150eadab3128de64d.tar.gz
net/http: support full-duplex HTTP/1 responses
Add support for concurrently reading from an HTTP/1 request body while writing the response. Normally, the HTTP/1 server automatically consumes any remaining request body before starting to write a response, to avoid deadlocking clients which attempt to write a complete request before reading the response. Add a ResponseController.EnableFullDuplex method which disables this behavior. For #15527 For #57786 Change-Id: Ie7ee8267d8333e9b32b82b9b84d4ad28ab8edf01 Reviewed-on: https://go-review.googlesource.com/c/go/+/472636 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Roland Shoemaker <roland@golang.org>
Diffstat (limited to 'api')
-rw-r--r--api/next/57786.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/next/57786.txt b/api/next/57786.txt
new file mode 100644
index 0000000000..358a731d1a
--- /dev/null
+++ b/api/next/57786.txt
@@ -0,0 +1 @@
+pkg net/http, method (*ResponseController) EnableFullDuplex() error #57786