summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2021-03-08 07:35:13 (GMT)
committerGitHub <noreply@github.com>2021-03-08 07:35:13 (GMT)
commitc25910a135c2245accadb324b40dd6453015e056 (patch)
treedcf6b4a83fea87c1456632c0b7194d2b1e5b2100 /Misc
parent8d00462850b32da4649c3403692ed5515e6a96d1 (diff)
downloadcpython-c25910a135c2245accadb324b40dd6453015e056.zip
cpython-c25910a135c2245accadb324b40dd6453015e056.tar.gz
cpython-c25910a135c2245accadb324b40dd6453015e056.tar.bz2
bpo-43332: Buffer proxy connection setup packets before sending. (GH-24780)
We now buffer the CONNECT request + tunnel HTTP headers into a single send call. This prevents the OS from generating multiple network packets for connection setup when not necessary, improving efficiency.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-03-07-11-23-20.bpo-43332.weatsh.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-03-07-11-23-20.bpo-43332.weatsh.rst b/Misc/NEWS.d/next/Library/2021-03-07-11-23-20.bpo-43332.weatsh.rst
new file mode 100644
index 0000000..c40be95
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-03-07-11-23-20.bpo-43332.weatsh.rst
@@ -0,0 +1,3 @@
+Improves the networking efficiency of :mod:`http.client` when using a proxy
+via :meth:`~HTTPConnection.set_tunnel`. Fewer small send calls are made
+during connection setup.