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
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
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?
"""
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
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