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 to IPv6. I wasn't able to find the reason for this, 
but it doesn't seem to be related to our code.

```
connect(4, {sa_family=AF_INET, sin_port=htons(443), 
sin_addr=inet_addr("10.0.0.1")}, 16) = 0
connect(4, {sa_family=AF_INET6, sin6_port=htons(443), inet_pton(AF_INET6, 
"dead:beef::cafe", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28) = 0
connect(4, {sa_family=AF_INET6, sin6_port=htons(443), inet_pton(AF_INET6, 
"dead:beef::cafe", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28) = 0
```
"""

See the full comment at 
https://github.com/freeipa/freeipa/pull/624#issuecomment-287798248
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to