test: try other ipv6 localhost alternatives
ubuntu1404-64
has been having issues with test-net-connect-options-ipv6
fairly frequently. I'm not exactly sure why the IPv6 localhost
resolving is flaky on that particular machine (it could be the way its network is configured?), but being an Ubuntu system it typically has other IPv6 localhost hostnames.
This change tries those special IPv6 hostnames first before trying localhost
. If those special hostnames fail to resolve and if localhost
should error with ENOTFOUND
, it retries several times before giving up.
I'm hoping this is enough to fix things. I did perform a stress test on that particular node and it was ok on every run after this change.