jmx-dev [PATCH] Review request for 7183800: TEST_BUG: Update tests to run on Ubuntu 12.04 (localhost is 127.0.1.1)

Alan Bateman Alan.Bateman at oracle.com
Thu Mar 14 04:03:17 PDT 2013


On 14/03/2013 09:42, Chris Hegarty wrote:
> Eric, Alan,
>
> This one is confusing me some what. I see the problem, but don't 
> understand why when sending to 127.0.1.1, the from address is 
> 127.0.0.1. Is this behavior specific to Linux, or simply that Linux 
> (12.04) just started to have this configuration as default.
>
> I guess this issue could have been resolved by explicitly binding the 
> channels to InetAddress.getLocalAddress either.
Eric's patch is a workaround for the out-of-the-box configuration. I 
think Ubuntu have been using 127.0.1.1 for some time. An alternative 
would be to bind the listener to a specific address but that changes the 
test subtly for all environments.

-Alan


More information about the jmx-dev mailing list