diff options
author | Yi Kong <yikong@google.com> | 2016-07-15 21:27:43 +0100 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2016-07-27 12:48:14 +0100 |
commit | f119f6d48e63d5cab09f5342eb46f84ed91b1195 (patch) | |
tree | b275e3341ed8f441c53a27e8fb09920f306893fd /annotations/generate_annotated_java_files.py | |
parent | 76266416ff69ab7f8227da7479c7aa0cb9826a23 (diff) |
Socket ctor should try all addresses
In M and below, calling:
Socket("www.google.com", 80);
would call InetAddress.getAllByName("www.google.com") and then try
all of the resulting IP addresses in a loop. The new behaviour we
adopted in Enso is only trying the first record.
This restores the old behaviour and make sure we can create socket to
sites with misconfigured AAAA record.
Contributed by: Paul Marks <pmarks@google.com>
Bug: 30007735
Test: libcore.java.net.SocketTest#testSocketTestAllAddresses
Change-Id: Ieaafd20676081f6bf21548d17a95db092eece299
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions