[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-30 Thread Zveinn
Zveinn added the comment: No problem, Hopefully this will improve the performance on some network devices and proxy services. -- ___ Python tracker ___

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-08 Thread Senthil Kumaran
Change by Senthil Kumaran : -- stage: commit review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: I only ported this back to 3.9 as it is a bit late in 3.8's release cycle for a pure performance fix of an issue that has been around for ages. Thanks for raising the issue. The main http code already did this, the tunnel proxy code path clearly hadn't

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-08 Thread miss-islington
miss-islington added the comment: New changeset c6e7cf1ee09c88d35e6703c33a61eca7b9db54f3 by Miss Islington (bot) in branch '3.9': bpo-43332: Buffer proxy connection setup packets before sending. (GH-24780) https://github.com/python/cpython/commit/c6e7cf1ee09c88d35e6703c33a61eca7b9db54f3

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23549 pull_request: https://github.com/python/cpython/pull/24783 ___ Python tracker

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset c25910a135c2245accadb324b40dd6453015e056 by Gregory P. Smith in branch 'master': bpo-43332: Buffer proxy connection setup packets before sending. (GH-24780) https://github.com/python/cpython/commit/c25910a135c2245accadb324b40dd6453015e056

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-07 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +23545 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24780 ___ Python tracker

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-06 Thread Zveinn
Zveinn added the comment: Hey! First of all, thank you for not shitting all over me <3 I have never really used python and the only reason I found this is because I was developing a tool that accepted a LOT of CONNECT requests for python and I just happened to stumble upon this little

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: FYI another common socket idiom for this, specifically added for use in old HTTP 1.x servers building up responses, is setting and clearing the TCP_CORK (Linux) or TCP_NOPUSH (FreeBSD, and maybe macos? [buggy?]) socket option before and after the set of

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: yep, that'd be a worthwhile improvement. note that the send method in that code also accepts BytesIO objects so rather than doing our own sequence of bytes and join we could just buffer in one of those. -- ___

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I changed the title to what a PR/commit title should look like. Your justification is that "Multiple writes possibly cause excessive network usage and increased implementation complexity on the other end." I see no problem with the formatting of your first