connection: make connect_hostname more smart, while there for consistency always use PF_INET and PF_INET6
Ongoing work