[Freeipa-devel] [freeipa PR#624][comment] Use connection keep-alive

2017-03-20 Thread tomaskrizek
URL: https://github.com/freeipa/freeipa/pull/624 Title: #624: Use connection keep-alive tomaskrizek commented: """ master: * 7beb6d1cad7e2200208cb14be6c823a89abf0dc3 Use connection keep-alive * b2bdd2e1a912573ae4a3e8e5f40831a800d972f7 Add debug logging for keep-alive * 7f567286f6b89f3e981af0291

[Freeipa-devel] [freeipa PR#624][comment] Use connection keep-alive

2017-03-20 Thread tomaskrizek
URL: https://github.com/freeipa/freeipa/pull/624 Title: #624: Use connection keep-alive tomaskrizek commented: """ @tiran I checked that code as well, `getaddrinfo` returns both IPv6 and IPv4. That could explain two connections, but I'm not sure where the third one comes from. """ See the ful

[Freeipa-devel] [freeipa PR#624][comment] Use connection keep-alive

2017-03-20 Thread tiran
URL: https://github.com/freeipa/freeipa/pull/624 Title: #624: Use connection keep-alive tiran commented: """ This behavior could be caused by https://github.com/python/cpython/blob/master/Lib/socket.py#L688 . What's ```socket.getaddrinfo(host, 443, 0, socket.SOCK_STREAM)``` for your host? """

[Freeipa-devel] [freeipa PR#624][comment] Use connection keep-alive

2017-03-20 Thread tomaskrizek
URL: https://github.com/freeipa/freeipa/pull/624 Title: #624: Use connection keep-alive tomaskrizek commented: """ The extra connections seem to come from the internals of `httplib` library. If the hostname resolves to both IPv4 and IPv6 address, one connection is established to IPv4 and two t

[Freeipa-devel] [freeipa PR#624][comment] Use connection keep-alive

2017-03-20 Thread tomaskrizek
URL: https://github.com/freeipa/freeipa/pull/624 Title: #624: Use connection keep-alive tomaskrizek commented: """ I examined this in wireshark. Without this patch, `ipa vault-add` would establish 7 TCP connections to apache, while it establishes only 3 with this patch. I wasn't able to track