Hi!<div><br></div><div>Thanks for the hint. I'll try that. The only relevant tests are from users that have this configuration problem but it feels safe enough.</div><div><br></div><div>regards,</div><div>Vlad<br><br><div class="gmail_quote">

On Thu, Sep 20, 2012 at 11:58 AM, Henrik Nord <span dir="ltr"><<a href="mailto:henrik@erlang.org" target="_blank">henrik@erlang.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi<br>
<br>
(Raimo wrote)<br>
Could you try: + return lookupNames(InetAddress.<u></u>getByName(null)); instead, as it is documented to return the loopback address. That would save us from surprises if "localhost" is strangely configured. The epmd will listen to * so locally using the loopback address should always work. If we one day change socket type (configurable) in OtpEpmd to inet6 I guess the corresponding ::1 address is returned by the above line.<br>


<br>
Thank you for your contributions!<div><div class="h5"><br>
<br>
On 09/19/2012 11:19 AM, Vlad Dumitrescu wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<br>
<br>
I found a problem with OtpEpmd if the network is badly configured:<br>
<br>
In an enterprise environment, it's not an easy task to get the machine<br>
configuration corrected.<br>
On some machines with weird network configurations,<br>
InetAddress.getLocalHost() hangs. Searching for "localhost" works (at<br>
least in the cases I met). The difference is that the loopback address<br>
will be returned, instead of the real IP address, but for the local<br>
machine this should not be a problem.<br>
<br>
<br>
git fetch git://<a href="http://github.com/vladdu/otp.git" target="_blank">github.com/vladdu/otp.<u></u>git</a> jinterface_epmd_localhost<br>
<br>
<a href="https://github.com/vladdu/otp/compare/jinterface_epmd_localhost" target="_blank">https://github.com/vladdu/otp/<u></u>compare/jinterface_epmd_<u></u>localhost</a><br>
<a href="https://github.com/vladdu/otp/compare/jinterface_epmd_localhost.patch" target="_blank">https://github.com/vladdu/otp/<u></u>compare/jinterface_epmd_<u></u>localhost.patch</a><br>
<br>
I don't know how to configure the network to provoke the problem, but<br>
I just got confirmation from someone that has it that with this fix<br>
everything works as expected.<br>
[Note that for this user, "erl -sname foo" and "erl -sname bar" can't<br>
connect to each other, one has to use "erl -sname foo@localhost"]<br>
<br>
There are no tests covering OtpEpmd, would this change require any?<br>
<br>
best regards,<br>
Vlad<br></div></div>
______________________________<u></u>_________________<br>
erlang-patches mailing list<br>
<a href="mailto:erlang-patches@erlang.org" target="_blank">erlang-patches@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-patches" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-patches</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
/Henrik Nord Erlang/OTP<br>
<br>
</font></span></blockquote></div><br></div>