musl: getaddrinfo returns EAI_AGAIN on invalid hostname '...' instead of EAI_NONAME
The EAI_AGAIN means temp server error, so try again later. However the hostname ‘…’ is invalid so there is no point in retrying again later.
Makes nodejs test suite break.
https://github.com/nodejs/node/pull/5099
Fix was sent to upstream: http://www.openwall.com/lists/musl/2016/05/25/1
This is fixed in git master but needs to be cherry-picked for 3.4-stable.
(from redmine: issue id 5725, created on 2016-06-15, closed on 2016-06-24)
- Changesets:
- Revision e6c226fb by Natanael Copa on 2016-06-17T16:39:26Z:
main/musl: fix error return code for getaddrinfo
needed for fixing dns tests in nodejs test suite
https://github.com/nodejs/node/pull/5099
fixes #5725
(cherry picked from commit c0bd1e49f2d9867f7d3747111423a959123e73ed)