Comment 13 for bug 153571

Revision history for this message
In , Paul Fee (pfee) wrote :

Can some details be added as to why the glibc defaults are better than the POSIX standard.

The default only applies if hints==NULL. If the POSIX defaults are non-optimal, then users of
other systems (e.g. Solaris) would find it useful to know that different settings are preferred.
On Solaris 10, setting hints to NULL results in POSIX defined behaviour.

Are the reasons behind glibc's defaults unique to glibc or are they related to network effects
which would apply to any OS or C resolver library. If the settings are valid everywhere then
getaddrinfo() users would benefit from using them on non-glibc platforms.

Thanks.