[PATCH] Review request for 7183800: TEST_BUG: Update tests to run on Ubuntu 12.04 (localhost is 127.0.1.1)
Chris Hegarty
chris.hegarty at oracle.com
Thu Mar 14 04:14:45 PDT 2013
On 03/14/2013 11:03 AM, Alan Bateman wrote:
> 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.
Thanks for the clarification, that is what I thought. The changes look
fine to me too.
-Chris.
>
> -Alan
More information about the nio-dev
mailing list