Red Hat Bugzilla – Bug 485682
Replace use of gethostbyname() with getaddrinfo()/getnameinfo()
Last modified: 2015-11-15 19:06:41 EST
This turns out to be much worse than it sounds:
gethostbyname() isn't a thread safe API and could cause (and may have been observed to cause) errors when multiple threads do gethostbyname() at the same time.
Qpid C++ code now doesn't use gethostbyname() call. Verified on svn tree revision 752581.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.