]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43332: Buffer proxy connection setup packets before sending. (GH-24780)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Mar 2021 07:59:37 +0000 (23:59 -0800)
committerGitHub <noreply@github.com>
Mon, 8 Mar 2021 07:59:37 +0000 (23:59 -0800)
commitc6e7cf1ee09c88d35e6703c33a61eca7b9db54f3
tree941937755bf1c1eba5c3c80d894ffb81b678d76f
parent2c0a0b04a42dc4965fcfaef936f497e44f06dea5
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.
(cherry picked from commit c25910a135c2245accadb324b40dd6453015e056)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/http/client.py
Lib/test/test_httplib.py
Misc/NEWS.d/next/Library/2021-03-07-11-23-20.bpo-43332.weatsh.rst [new file with mode: 0644]