mongodb/mongo-c-driver — pull request #22 by octo (2012-01-27 13:53:56+00:00)
Title: net.c: Improve the use of getaddrinfo(3).

The code now iterates over all the addresses returned by *getaddrinfo(3)* until it successfully connects to one. If supported by the system, the `AI_ADDRCONFIG` flag is used. This causes IPv6 addresses to be returned only if the system has at least one interface with an IPv6 address (dito for other address families).

Also, unify `src/net.c` and `src/platform/linux/net.c` as much as possible.