]> Cypherpunks repositories - gostls13.git/commitdiff
doc: document new http.Transport limit on 1xx responses
authorDamien Neil <dneil@google.com>
Thu, 24 Oct 2024 16:28:58 +0000 (09:28 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 25 Oct 2024 03:22:33 +0000 (03:22 +0000)
Fixes #65035

Change-Id: I3b0586b5e2a0729e6b252d2bcd4139c99bc80733
Reviewed-on: https://go-review.googlesource.com/c/go/+/622335
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
doc/next/6-stdlib/99-minor/net/http/65035.md [new file with mode: 0644]

diff --git a/doc/next/6-stdlib/99-minor/net/http/65035.md b/doc/next/6-stdlib/99-minor/net/http/65035.md
new file mode 100644 (file)
index 0000000..5368aad
--- /dev/null
@@ -0,0 +1,11 @@
+[Transport]'s limit on 1xx informational responses received
+in response to a request has changed.
+It previously aborted a request and returned an error after
+receiving more than 5 1xx responses.
+It now returns an error if the total size of all 1xx responses
+exceeds the [Transport.MaxResponseHeaderBytes] configuration setting.
+
+In addition, when a request has a
+[net/http/httptrace.ClientTrace.Got1xxResponse]
+trace hook, there is now no limit on the total number of 1xx responses.
+The `Got1xxResponse` hook may return an error to abort a request.