Hi,
On Tue, 25 Feb 2014, ?arko Milenkovi? wrote:
Hi all,
I would like to have Happy Eyeballshttp://en.wikipedia.org/wiki/Happy_eyeballs algorithm (more details herehttp://tools.ietf.org/html/rfc6555) implemented for all network communication in my application. Because I'm using libldap for searching openldap server I'm not quite sure does library already support this or would I need to implement it myself?
very bad idea.
To further clarify, I have following scenario: ldap server on myoldap.organization.org that listens for both ipv6 and ipv4 connections. Clients connect to it using libldap. Does libldap have support to automatically choose ipv6 over ipv4 or vice versa?
If yes, how is choice made? Is ipv6 always preferred if available or does better connection win? If no, then I know the way I need to go. The only thing to add there is that I would be willing to add this support to libldap.
the decision is made by the operating system and the resolver libary.
FreeBSD for example has this configurable via ip6addrctl.
I would strongly object to having anything on the order of Happy Eyeballs embedded into libldap. This is technology aimed at getting the end user (Eye Ball) connected to whatever website he wants to visit. Server communication should be predictable for various reasons including security.
Greetings Christian