Re: [JDK-8257080] Java does not try all DNS results when opening a socket

2020-12-16 Thread Aleks Efimov
Hi Benjamin, As Alan stated I'm working on adding an SPI [1] which will provide a possibility to alter how host names and IP addresses are resolved by JDK platform. I believe it would be possible to use this mechanism for addressing issue described in JDK-8257080. Best Regards, Aleksei [1]

Re: 8248865: Document JNDI/LDAP timeout properties

2020-07-07 Thread Aleks Efimov
Hi Daniel, Thanks for documenting the system properties. It looks good to me. NIT: You might want to update the copyright's last modification year to 2020 Best Regards, Aleksei On 06/07/2020 16:39, Daniel Fuchs wrote: Hi, Please find below a doc only change to document two JDK specific JNDI/

Re: RFR: 8244958: preferIPv4Stack and preferIPv6Addresses do not affect addresses returned by HostsFileNameService

2020-05-26 Thread Aleks Efimov
Thank you Alan -Aleksei On 26/05/2020 13:50, Alan Bateman wrote: On 26/05/2020 11:22, Aleks Efimov wrote: Hi Alan, Thank you for the review. I've renamed 'appendAddresses' to 'concatAddresses' per your suggestion. And also removed  'arrangeAddresses

Re: RFR: 8244958: preferIPv4Stack and preferIPv6Addresses do not affect addresses returned by HostsFileNameService

2020-05-26 Thread Aleks Efimov
new webrev. best regards, -- daniel On 26/05/2020 11:22, Aleks Efimov wrote: Hi Alan, Thank you for the review. I've renamed 'appendAddresses' to 'concatAddresses' per your suggestion. And also removed  'arrangeAddresses' method and moved its code to 'lo

Re: RFR: 8244958: preferIPv4Stack and preferIPv6Addresses do not affect addresses returned by HostsFileNameService

2020-05-26 Thread Aleks Efimov
ttp://cr.openjdk.java.net/~aefimov/8244958/02 -Aleksei On 26/05/2020 09:51, Alan Bateman wrote: On 25/05/2020 11:47, Aleks Efimov wrote: Hi Alan, Daniel, Thank you for looking into this change. I've cleaned-up the fix and the test according to your comments. Modified fix can be viewed he

Re: RFR: 8244958: preferIPv4Stack and preferIPv6Addresses do not affect addresses returned by HostsFileNameService

2020-05-25 Thread Aleks Efimov
milar variables(preferIPv6Address) in InetAddress.java. Thanks, Vyom On Mon, May 25, 2020 at 4:18 PM Aleks Efimov mailto:aleksej.efi...@oracle.com>> wrote: Hi Alan, Daniel, Thank you for looking into this change. I've cleaned-up the fix and the test according to your comment

Re: RFR: 8244958: preferIPv4Stack and preferIPv6Addresses do not affect addresses returned by HostsFileNameService

2020-05-25 Thread Aleks Efimov
Hi Alan, Daniel, Thank you for looking into this change. I've cleaned-up the fix and the test according to your comments. Modified fix can be viewed here: http://cr.openjdk.java.net/~aefimov/8244958/01 Kind Regards, Aleksei On 24/05/2020 08:12, Alan Bateman wrote: On 22/05/2020 16:45,

RFR: 8244958: preferIPv4Stack and preferIPv6Addresses do not affect addresses returned by HostsFileNameService

2020-05-22 Thread Aleks Efimov
Hi, The "java.net.preferIPv4Stack" and "java.net.preferIPv6Addresses" system properties do not affect the addresses and their order, returned by the HostsFileNameService provider that can be created by specifying "jdk.net.hosts.file" system property. The following fix analyses the system prope

Re: e Re: [PATCH] 7006496: Use modern Windows API to retrieve OS DNS servers

2020-01-14 Thread Aleks Efimov
updated to 2020. No need for a new webrev if that's the only change! best regards, -- daniel On 09/01/2020 17:17, Aleks Efimov wrote: Hi Anuuraag, Latest webrev: http://cr.openjdk.java.net/~aefimov/anuraaga/7006496/05/ Looks fine to me CI is also happy Best Regards, Aleksei

e Re: [PATCH] 7006496: Use modern Windows API to retrieve OS DNS servers

2020-01-09 Thread Aleks Efimov
pters); +      return STS_SL_FOUND & STS_NS_FOUND;  }  /* - * Initialize JNI field IDs. + * Initialize JNI field IDs and classes.   */  JNIEXPORT void JNICALL  Java_sun_net_dns_ResolverConfigurationImpl_init0(JNIEnv *env, jclass cls) @@ -260,7 +197,7 @@ Java_sun_net_dns_ResolverConfigurationImpl_loadDNSconfig0(JNIEnv *env, jclass cl      searchlist[0] = '\0';      nameservers[0] = '\0'; -    if (loadConfig(searchlist, nameservers) != STS_ERROR) { +    if (loadConfig(env, searchlist, nameservers) != STS_ERROR) {          /*           * Populate static fields in sun.net.DefaultResolverConfiguration @@ -272,8 +209,6 @@ Java_sun_net_dns_ResolverConfigurationImpl_loadDNSconfig0(JNIEnv *env, jclass cl          obj = (*env)->NewStringUTF(env, nameservers);          CHECK_NULL(obj);          (*env)->SetStaticObjectField(env, cls, nameserversID, obj); -    } else { -        JNU_ThrowOutOfMemoryError(env, "native memory allocation failed");      }  } best regards, -- daniel On 09/01/2020 00:54, Aleks Efimov wrote: > Got the testing results: the CI is happy with the last patch - no JNDI > test failures observed > > Kind Regards, > Aleksei

Re: [PATCH] 7006496: Use modern Windows API to retrieve OS DNS servers

2020-01-08 Thread Aleks Efimov
Got the testing results: the CI is happy with the last patch - no JNDI test failures observed Kind Regards, Aleksei On 08/01/2020 18:23, Aleks Efimov wrote: Hi Anuraag, I've uploaded your latest patch to the following location: http://cr.openjdk.java.net/~aefimov/anuraaga/7006496/04

Re: [PATCH] 7006496: Use modern Windows API to retrieve OS DNS servers

2020-01-08 Thread Aleks Efimov
Hi Anuraag, I've uploaded your latest patch to the following location: http://cr.openjdk.java.net/~aefimov/anuraaga/7006496/04 The local Windows build and the acquired configuration are good. I will run you patch through our CI system and will update this thread once I get the results. Kind

Re: [PATCH] 7006496: Use modern Windows API to retrieve OS DNS servers

2019-12-11 Thread Aleks Efimov
   } -    } -    /* -     * Free the adpater structure -     */ -    if (adapterP) { -        free(adapterP); +        adapter = adapter->Next;      } +    free(adapters); +      return STS_SL_FOUND & STS_NS_FOUND;  } @@ -260,7 +185,7 @@ Java_sun_net_dns_ResolverConfigurationImpl_loadDNSconf

Re: [PATCH] 7006496: Use modern Windows API to retrieve OS DNS servers

2019-12-09 Thread Aleks Efimov
the adpater structure -     */ -    if (adapterP) { -        free(adapterP); +        adapter = adapter->Next;      } +    free(adapters); +      return STS_SL_FOUND & STS_NS_FOUND;  } @@ -260,7 +189,7 @@ Java_sun_net_dns_ResolverConfigurationImpl_loadDNSconfig0(JNIEnv *env, jclass cl      searchlist[0] = '

Re: [PATCH] 7006496: Use modern Windows API to retrieve OS DNS servers

2019-12-02 Thread Aleks Efimov
2/12/2019 13:04, Aleks Efimov wrote: Hi Anuraag, I've submited your patch to our CI system and I'm observing a bunch of NPE failures with such stack trace: java.lang.NullPointerException     at java.base/sun.net.dns.ResolverConfigurationImpl.allocateListForDelimitedString(ResolverConfigura

Re: [PATCH] 7006496: Use modern Windows API to retrieve OS DNS servers

2019-12-02 Thread Aleks Efimov
Hi Anuraag, I've submited your patch to our CI system and I'm observing a bunch of NPE failures with such stack trace: java.lang.NullPointerException     at java.base/sun.net.dns.ResolverConfigurationImpl.allocateListForDelimitedString(ResolverConfigurationImpl.java:108)     at java.base/sun.

Re: RFR[8230132]: java/net/NetworkInterface/NetworkInterfaceRetrievalTests.java to skip Teredo Tunneling Pseudo-Interface

2019-09-06 Thread Aleks Efimov
trick On 02/09/2019 14:29, Aleks Efimov wrote: Hey Patrick, Looks good to me! You could utilize jdk.test.lib.Platform::isWindows from test library to check if the test is running on Windows platform. With Best Regards, Aleksei On 29/08/2019 16:01, Patrick Concannon wrote: Hi, Would

Re: RFR[8230132]: java/net/NetworkInterface/NetworkInterfaceRetrievalTests.java to skip Teredo Tunneling Pseudo-Interface

2019-09-02 Thread Aleks Efimov
Hey Patrick, Looks good to me! You could utilize jdk.test.lib.Platform::isWindows from test library to check if the test is running on Windows platform. With Best Regards, Aleksei On 29/08/2019 16:01, Patrick Concannon wrote: Hi, Would it be possible to have my fix for JDK-8230132 reviewe

Re: RFR: 8230000: some httpclients testng tests run zero test

2019-08-23 Thread Aleks Efimov
Hi Julia, Minor comments: test/jdk/java/net/httpclient/LineStreamsAndSurrogatesTest.java#2: Could you please add the missing comma after the last modification year, i.e. "2018, 2019," test/jdk/java/net/httpclient/LineSubscribersAndSurrogatesTest.java#2: Same stuff: "2018, 2019," Otherwise loo

Re: RFR(XS): 8228508: [TESTBUG] java/net/httpclient/SmokeTest.java fails on Windows7

2019-08-12 Thread Aleks Efimov
Thanks Chris! With Best Regards, Aleksei On 12/08/2019 18:17, Chris Hegarty wrote: On 12 Aug 2019, at 18:14, Aleks Efimov wrote: Hi Daniel, Chris, The second version of the fix that addresses your on-line and off-line suggestions and comments could be viewed here: http

Re: RFR(XS): 8228508: [TESTBUG] java/net/httpclient/SmokeTest.java fails on Windows7

2019-08-12 Thread Aleks Efimov
Hi Daniel, Chris, The second version of the fix that addresses your on-line and off-line suggestions and comments could be viewed here: http://cr.openjdk.java.net/~aefimov/8228508/01/ Summary of the changes: 1. Usages of com/sun/net/httpserver/EchoHandler were replaced with newly added SmokeT

Re: [teststabilization] RFR: 8225430: Replace wildcard address with loopback or local host in tests - part 14

2019-08-08 Thread Aleks Efimov
Daniel, Chris, Thanks for your reviews! With Best Regards, Aleksei On 08/08/2019 11:59, Daniel Fuchs wrote: Thanks Aleksei! Looks good. -- daniel On 07/08/2019 19:46, Aleks Efimov wrote: Hi Daniel, HandleContentTypeWithAttrs correction - removed bind and used three-args constructor

Re: [teststabilization] RFR: 8225430: Replace wildcard address with loopback or local host in tests - part 14

2019-08-07 Thread Aleks Efimov
Thanks Vyom! With Best Regards, Aleksei On 07/08/2019 06:45, Vyom Tewari26 wrote: looks good to me. Thanks, Vyom - Original message - From: Aleks Efimov Sent by: "net-dev" To: net-dev Cc: Subject: [teststabilization] RFR: 8225430: Replac

Re: [teststabilization] RFR: 8225430: Replace wildcard address with loopback or local host in tests - part 14

2019-08-07 Thread Aleks Efimov
Hi Daniel, HandleContentTypeWithAttrs correction - removed bind and used three-args constructor instead - looks much nicer. The webrev location is same: http://cr.openjdk.java.net/~aefimov/8225430/01 Best Regards, Aleksei On 07/08/2019 17:09, Aleks Efimov wrote: Hi Daniel, Thank you for the

Re: [teststabilization] RFR: 8225430: Replace wildcard address with loopback or local host in tests - part 14

2019-08-07 Thread Aleks Efimov
anks I will keep that trick in mind and apply it if test fails again. On 06/08/2019 15:35, Aleks Efimov wrote: Hi, Please help to review few test fixes which address intermittent networking failures: http://cr.openjdk.java.net/~aefimov/8225430/00 JBS: https://bugs.openjdk.java.net/browse/JD

RFR(XS): 8228508: [TESTBUG] java/net/httpclient/SmokeTest.java fails on Windows7

2019-08-06 Thread Aleks Efimov
Hello, Please help to review the change that fixes java/net/httpclient/SomeTest.java timeout issue: http://cr.openjdk.java.net/~aefimov/8228508/00 The test now uses the 'com/sun/net/httpclient/EchoHandler.java' test class. The test fails before the fix on Windows 7 and passes after. No mach5

[teststabilization] RFR: 8225430: Replace wildcard address with loopback or local host in tests - part 14

2019-08-06 Thread Aleks Efimov
Hi, Please help to review few test fixes which address intermittent networking failures: http://cr.openjdk.java.net/~aefimov/8225430/00 JBS: https://bugs.openjdk.java.net/browse/JDK-8225430 The following tests have been marked with @intermittent keyword: java/net/DatagramSocket/ReuseAddressTe

Re: RFR [13] 8226730: Missing `@` in code tags

2019-06-25 Thread Aleks Efimov
Thanks for the review Brian. I will help Patrick to push the change Best Regards, Aleksei On 25/06/2019 15:57, Patrick wrote: Ok, thanks Brian. Will change before pushing. On 6/25/19 3:51 PM, Brian Burkhalter wrote: Hi Patrick, Looks OK to me except the 2017 copyright year in URLStreamHandl

Re: [teststabilization] RFR: 8224035 : Replace wildcard address with loopback or local host in tests - part 9

2019-05-23 Thread Aleks Efimov
lines. Sometimes a convenient way to do that is to create a server socket without any arguments and then bind it. This has the additional advantage of avoiding the 3-args constructor which Alan doesn't like ;-) best regards, -- daniel On 23/05/2019 15:01, Aleks Efimov wrote: Hi, Please help

[teststabilization] RFR: 8224035 : Replace wildcard address with loopback or local host in tests - part 9

2019-05-23 Thread Aleks Efimov
Hi, Please help to review another part of test fixes to address intermittent networking failures: http://cr.openjdk.java.net/~aefimov/8224035/00 JBS: https://bugs.openjdk.java.net/browse/JDK-8224035 With Best Regards, Aleksei

Re: [teststabilization] RFR: 8223856: Replace wildcard address with loopback or local host in tests - part 8

2019-05-16 Thread Aleks Efimov
Hi Daniel, The changes looks good to me! Best Regards, Aleksei On 16/05/2019 13:23, Daniel Fuchs wrote: Hi, Please find below a fix for [1]: 8223856: Replace wildcard address with loopback or local host in tests - part 8 http://cr.openjdk.java.net/~dfuchs/webrev_8223856/webrev.00/i

Re: [teststabilization] RFR: 8223798 : Replace wildcard address with loopback or local host in tests - part 7

2019-05-15 Thread Aleks Efimov
Vyom, Daniel, Thanks for your reviews! Best Regards, Aleksei On 15/05/2019 18:51, Vyom Tiwari wrote: Hi Aleks, latest changes looks good to me . Thanks, Vyom On Wed, May 15, 2019 at 11:12 PM Aleks Efimov mailto:aleksej.efi...@oracle.com>> wrote: Hi Daniel, Thanks for the

Re: [teststabilization] RFR: 8223798 : Replace wildcard address with loopback or local host in tests - part 7

2019-05-15 Thread Aleks Efimov
I've broke the long lines in few places. Will push the changes shortly. With Best Regards, Aleksei On 15/05/2019 17:59, Daniel Fuchs wrote: Hi Aleksei, On 15/05/2019 17:07, Aleks Efimov wrote: Hi, Another part of test fixes to address intermittent networking test failures can be viewed h

[teststabilization] RFR: 8223798 : Replace wildcard address with loopback or local host in tests - part 7

2019-05-15 Thread Aleks Efimov
Hi, Another part of test fixes to address intermittent networking test failures can be viewed here: http://cr.openjdk.java.net/~aefimov/8223798/00/ Could I please ask for the help to review it? JBS: https://bugs.openjdk.java.net/browse/JDK-8223798 With Best Regards, Aleksei

Re: [teststabilization] RFR: 8223638: Replace wildcard address with loopback or local host in tests - part 6

2019-05-14 Thread Aleks Efimov
pty() || file.startsWith("!");     URI httpURI = URIBuilder.newBuilder()   .scheme("http")   .loopback()   .port(port)   .path(jar);     return new URL("jar:" + httpURI + file); } best regards, -- daniel

Re: [teststabilization] RFR: 8223638: Replace wildcard address with loopback or local host in tests - part 6

2019-05-13 Thread Aleks Efimov
+    server = HttpServer.create(); } public void start() throws IOException { -    server.bind(new InetSocketAddress(0), 0); +    server.bind(new InetSocketAddress(address, 0), 0); best regards, -- daniel On 13/05/2019 16:07, Aleks Efimov wrote: Hi, Please help to

[teststabilization] RFR: 8223638: Replace wildcard address with loopback or local host in tests - part 6

2019-05-13 Thread Aleks Efimov
Hi, Please help to review another part of test fixes to address intermittent  networking test failures. Webrev: http://cr.openjdk.java.net/~aefimov/8223638/00/index.html JBS: https://bugs.openjdk.java.net/browse/JDK-8223638 With Best Regards, Aleksei

Re: [teststabilization] RFR: 8223465: Replace wildcard address with loopback or local host in tests - part 3

2019-05-10 Thread Aleks Efimov
Thank you Daniel! On 10/05/2019 14:16, Daniel Fuchs wrote: Looks god to me! cheers, -- daniel On 10/05/2019 13:24, Aleks Efimov wrote: Thank you for the review Daniel! I've added the suggested comment to ServerSocket_accept + fixed the white-spaces. About ChunkedErrorStream.java:

Re: [teststabilization] RFR: 8223465: Replace wildcard address with loopback or local host in tests - part 3

2019-05-10 Thread Aleks Efimov
line 153.  This test now uses the external address instead of using the loopback but I guess that's OK. Otherwise looks good! best regards, -- daniel On 09/05/2019 19:42, Aleks Efimov wrote: Hi, Please help to review another part of test fixes to address intermittent fail

[teststabilization] RFR: 8223465: Replace wildcard address with loopback or local host in tests - part 3

2019-05-09 Thread Aleks Efimov
Hi, Please help to review another part of test fixes to address intermittent failures. Webrev: http://cr.openjdk.java.net/~aefimov/8223465/00/ JBS: https://bugs.openjdk.java.net/browse/JDK-8223465 With Best Regards, Aleksei