[erlang-patches] jinterface: OtpEpmd.get

Vlad Dumitrescu <>
Wed Sep 19 11:19:28 CEST 2012


Hi,

I found a problem with OtpEpmd if the network is badly configured:

In an enterprise environment, it's not an easy task to get the machine
configuration corrected.
On some machines with weird network configurations,
InetAddress.getLocalHost() hangs. Searching for "localhost" works (at
least in the cases I met). The difference is that the loopback address
will be returned, instead of the real IP address, but for the local
machine this should not be a problem.


git fetch git://github.com/vladdu/otp.git jinterface_epmd_localhost

https://github.com/vladdu/otp/compare/jinterface_epmd_localhost
https://github.com/vladdu/otp/compare/jinterface_epmd_localhost.patch

I don't know how to configure the network to provoke the problem, but
I just got confirmation from someone that has it that with this fix
everything works as expected.
[Note that for this user, "erl -sname foo" and "erl -sname bar" can't
connect to each other, one has to use "erl -sname "]

There are no tests covering OtpEpmd, would this change require any?

best regards,
Vlad


More information about the erlang-patches mailing list