[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 <https://bugs.python.org/issue43

[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 lit

[issue43332] http/client.py: - uses multiple network writes, possibly causing excessive network usage and increased implementation complexity on the other end

2021-02-26 Thread Zveinn
Zveinn added the comment: def _tunnel(self): connect_str = "CONNECT %s:%d HTTP/1.0\r\n" % (self._tunnel_host, self._tunnel_port) connect_bytes = connect_str.encode("ascii") < <https://

[issue43332] http/client.py: - uses multiple network writes, possibly causing excessive network usage and increased implementation complexity on the other end

2021-02-26 Thread Zveinn
Zveinn added the comment: also found this: https://dynatrace.github.io/OneAgent-SDK-for-Python/docs/encoding.html It might be relevant ? -- ___ Python tracker <https://bugs.python.org/issue43

[issue43332] http/client.py: - uses multiple network writes, possibly causing excessive network usage and increased implementation complexity on the other end

2021-02-26 Thread Zveinn
Zveinn added the comment: P.s. Sorry for the formatting of the previous message, I´m new :S -- ___ Python tracker <https://bugs.python.org/issue43332> ___ ___

[issue43332] def _tunnel(self): - uses multiple network writes, possibly causing unnecessary implementation complexity on the receiving end

2021-02-26 Thread Zveinn
New submission from Zveinn : Hey, some time ago I ran into some code in the cpython code I thought might be possible to improve it a little bit. https://github.com/python/cpython/blob/master/Lib/http/client.py#L903 This code specifically. Notice how the self.send() method is used multiple

[issue43332] def _tunnel(self): - uses multiple network writes, possibly causing excessive network usage and increased implementation complexity on the other end

2021-02-26 Thread Zveinn
Change by Zveinn : -- title: def _tunnel(self): - uses multiple network writes, possibly causing unnecessary implementation complexity on the receiving end -> def _tunnel(self): - uses multiple network writes, possibly causing excessive network usage and increased implementat

[issue43332] http/client.py: - uses multiple network writes, possibly causing excessive network usage and increased implementation complexity on the other end

2021-02-26 Thread Zveinn
Change by Zveinn : -- title: def _tunnel(self): - uses multiple network writes, possibly causing excessive network usage and increased implementation complexity on the other end -> http/client.py: - uses multiple network writes, possibly causing excessive network usage and increa