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
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
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
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://
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>
___
___
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
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
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