Unnecessary reverse lookup for InetAddress.ANY_IF

Guillermo Rodriguez Garcia <[email protected]> Wed, 28 Aug 2019 18:37:45 +0200
Newsgroups gmane.comp.java.classpath.devel
Message-ID <CABDcavZO1dknNEn0gvJu+6rHptc=GKq-CFv371ZdYrrowKPKqw@mail.gmail.com>
--000000000000058f62059130032a
Content-Type: text/plain; charset="UTF-8"

Not sure whether there's anyone else still reading this, but just in case.

InetAddress creates an ANY_IF object in its static initialiser (maps to the
special address 0.0.0.0 for IP4, or :: for IP6), then tries to retrieve the
hostname. This is pointless (this is an invalid address which should not
have an associated hostname), introduces unnecessary overhead (as it
typically results in a DNS reverse lookup), and in some cases can lead to
DNS timeouts.

Details here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91583

BR,

Guillermo Rodriguez Garcia
[email protected]

--000000000000058f62059130032a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Not sure whether there&#39;s anyone else =
still reading this, but just in case.<div><br></div><div>InetAddress create=
s an ANY_IF object in its static initialiser (maps to the special address 0=
.0.0.0 for IP4, or :: for IP6), then tries to retrieve the hostname. This i=
s pointless (this is an invalid address which should not have an associated=
 hostname), introduces unnecessary overhead (as it typically results in a D=
NS reverse lookup), and in some cases can lead to DNS timeouts.</div><div><=
br></div><div>Details here:=C2=A0<a href=3D"https://gcc.gnu.org/bugzilla/sh=
ow_bug.cgi?id=3D91583">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D91583=
</a><br><div><br></div><div>BR,</div><div><br><div dir=3D"ltr" class=3D"gma=
il_signature">Guillermo Rodriguez Garcia<br><a href=3D"mailto:guille.rodrig=
[email protected]" target=3D"_blank">[email protected]</a></div></div>=
</div></div></div>

--000000000000058f62059130032a--