Re: RFR: 8286171: HttpClient/2 : Expect:100-Continue blocks indefinitely when response is not 100 [v3]

2022-06-09 Thread Jaikiran Pai
On Thu, 9 Jun 2022 11:51:13 GMT, Conor Cleary wrote: >> test/jdk/java/net/httpclient/ExpectContinueTest.java line 264: >> >>> 262: >>> 263: HttpRequest getRequest = HttpRequest.newBuilder(getUri) >>> 264: .GET() >> >> Is this missing an `.expectContinue(true)` here? >

Re: RFR: 8286171: HttpClient/2 : Expect:100-Continue blocks indefinitely when response is not 100 [v3]

2022-06-09 Thread Jaikiran Pai
On Thu, 9 Jun 2022 11:27:47 GMT, Conor Cleary wrote: >> **Issue** >> It was observed that when the httpclient sends a POST request with the >> `Expect: 100 Continue` header set and the server replies with a response >> code `417 Expectation Failed` that the httpclient hangs indefinitely when

Re: RFR: 8286171: HttpClient/2 : Expect:100-Continue blocks indefinitely when response is not 100 [v2]

2022-06-09 Thread Jaikiran Pai
On Thu, 9 Jun 2022 11:27:19 GMT, Daniel Fuchs wrote: > We need to close the stream after the exchange has terminated, but the > exchange will not be considered to be terminated if we have a request body > and the request body has not been sent. That answers it. Thank you. - PR:

Re: RFR: 8286171: HttpClient/2 : Expect:100-Continue blocks indefinitely when response is not 100 [v2]

2022-06-09 Thread Jaikiran Pai
On Thu, 9 Jun 2022 11:15:14 GMT, Jaikiran Pai wrote: >> Conor Cleary has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8286171: Added teardown method and comments > > src/java.net.http/share/classes/jdk/inte

Re: RFR: 8286171: HttpClient/2 : Expect:100-Continue blocks indefinitely when response is not 100 [v3]

2022-06-09 Thread Jaikiran Pai
On Thu, 9 Jun 2022 11:23:21 GMT, Conor Cleary wrote: >> **Issue** >> It was observed that when the httpclient sends a POST request with the >> `Expect: 100 Continue` header set and the server replies with a response >> code `417 Expectation Failed` that the httpclient hangs indefinitely when

Re: RFR: 8286171: HttpClient/2 : Expect:100-Continue blocks indefinitely when response is not 100 [v2]

2022-06-09 Thread Jaikiran Pai
On Thu, 9 Jun 2022 11:19:04 GMT, Daniel Fuchs wrote: >> src/java.net.http/share/classes/jdk/internal/net/http/Http1Exchange.java >> line 862: >> >>> 860: // Sets a flag which closes the connection locally when >>> 861: // onFinished() is called >>> 862:

Re: RFR: 8286171: HttpClient/2 : Expect:100-Continue blocks indefinitely when response is not 100 [v2]

2022-06-09 Thread Jaikiran Pai
On Thu, 9 Jun 2022 10:31:31 GMT, Conor Cleary wrote: >> **Issue** >> It was observed that when the httpclient sends a POST request with the >> `Expect: 100 Continue` header set and the server replies with a response >> code `417 Expectation Failed` that the httpclient hangs indefinitely when

Re: RFR: 8286171: HttpClient/2 : Expect:100-Continue blocks indefinitely when response is not 100 [v2]

2022-06-09 Thread Jaikiran Pai
On Thu, 9 Jun 2022 10:31:31 GMT, Conor Cleary wrote: >> **Issue** >> It was observed that when the httpclient sends a POST request with the >> `Expect: 100 Continue` header set and the server replies with a response >> code `417 Expectation Failed` that the httpclient hangs indefinitely when

Re: RFR: 8276798: HttpURLConnection sends invalid HTTP request

2022-06-07 Thread Jaikiran Pai
On Mon, 6 Jun 2022 09:43:50 GMT, Jaikiran Pai wrote: > tier1, tier2 and tier3 tests have passed without issues. Additionally, the reproducer attached to the JBS issue has been run locally. The test fails regularly without this change and hasn't failed even once after this cha

RFR: 8276798: HttpURLConnection sends invalid HTTP request

2022-06-06 Thread Jaikiran Pai
Can I please get a review of this change which proposes to fix https://bugs.openjdk.java.net/browse/JDK-8276798? `sun.net.www.protocol.http.HttpURLConnection` has a (private) `writeRequests` method. This method is responsible for creating the standard HTTP request headers (include the request

Re: RFR: 8287390: Cleanup Map usage in AuthenticationInfo.requestAuthentication [v2]

2022-06-01 Thread Jaikiran Pai
On Wed, 1 Jun 2022 13:27:27 GMT, Andrey Turbanov wrote: >> src/java.base/share/classes/sun/net/www/protocol/http/AuthenticationInfo.java >> line 159: >> >>> 157: if (t == null || t == c) { >>> 158: assert cached == null; >>> 159: return cached; >>

Re: RFR: 8287390: Cleanup Map usage in AuthenticationInfo.requestAuthentication [v2]

2022-06-01 Thread Jaikiran Pai
On Wed, 1 Jun 2022 13:32:28 GMT, Andrey Turbanov wrote: >> `AuthenticationInfo.requestAuthentication` uses separate `HashMap`'s `get` >> +`put` calls. >> >>

Re: RFR: 8287390: Cleanup Map usage in AuthenticationInfo.requestAuthentication

2022-05-31 Thread Jaikiran Pai
On Sat, 30 Apr 2022 10:17:43 GMT, Andrey Turbanov wrote: > `AuthenticationInfo.requestAuthentication` uses separate `HashMap`'s `get` > +`put` calls. > >

Integrated: 8287318: ConcurrentModificationException in sun.net.httpserver.ServerImpl$Dispatcher

2022-05-31 Thread Jaikiran Pai
On Thu, 26 May 2022 07:17:12 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which addresses the issue noted in > https://bugs.openjdk.java.net/browse/JDK-8287318? > > The `ServerImpl` has a `Dispatcher` thread which uses a `Selector` to select > key

Re: RFR: 8287318: ConcurrentModificationException in sun.net.httpserver.ServerImpl$Dispatcher [v2]

2022-05-31 Thread Jaikiran Pai
On Tue, 31 May 2022 15:14:22 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which addresses the issue noted in >> https://bugs.openjdk.java.net/browse/JDK-8287318? >> >> The `ServerImpl` has a `Dispatcher` thread which uses a `Selector` to selec

Re: RFR: 8287237: (fs) Files.probeContentType returns null if filename contains hash mark on Linux [v4]

2022-05-31 Thread Jaikiran Pai
On Tue, 31 May 2022 18:29:30 GMT, Brian Burkhalter wrote: >> Modify `sun.net.www.MimeTable.findByFileName(String)` to attempt to find the >> file extension in the entire file name if it is not found in the portion of >> the name preceding the optional fragment beginning with a hash (`#`). > >

Re: RFR: 8287318: ConcurrentModificationException in sun.net.httpserver.ServerImpl$Dispatcher [v2]

2022-05-31 Thread Jaikiran Pai
On Tue, 31 May 2022 14:51:48 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Use Collection.toArray(...) instead of creating a copy of the collection > > src/jdk.ht

Re: RFR: 8287318: ConcurrentModificationException in sun.net.httpserver.ServerImpl$Dispatcher [v2]

2022-05-31 Thread Jaikiran Pai
act on the Set that is being iterated upon. > > No new tests have been added given the intermittent nature of this issue. > Existing tier1, tier2 and tier3 tests passed without any related failures, > after this change. Jaikiran Pai has updated the pull request incrementally with

Re: RFR: 8287237: (fs) Files.probeContentType returns null if filename contains hash mark on Linux [v2]

2022-05-28 Thread Jaikiran Pai
On Fri, 27 May 2022 19:09:05 GMT, Brian Burkhalter wrote: >> Modify `sun.net.www.MimeTable.findByFileName(String)` to attempt to find the >> file extension in the entire file name if it is not found in the portion of >> the name preceding the optional fragment beginning with a hash (`#`). > >

Re: RFR: 8287237: (fs) Files.probeContentType returns null if filename contains hash mark on Linux

2022-05-27 Thread Jaikiran Pai
On Thu, 26 May 2022 23:03:05 GMT, Brian Burkhalter wrote: > Modify `sun.net.www.MimeTable.findByFileName(String)` to attempt to find the > file extension in the entire file name if it is not found in the portion of > the name preceding the optional fragment beginning with a hash (`#`).

Re: RFR: 8287237: (fs) Files.probeContentType returns null if filename contains hash mark on Linux

2022-05-27 Thread Jaikiran Pai
On Thu, 26 May 2022 23:03:05 GMT, Brian Burkhalter wrote: > Modify `sun.net.www.MimeTable.findByFileName(String)` to attempt to find the > file extension in the entire file name if it is not found in the portion of > the name preceding the optional fragment beginning with a hash (`#`).

Integrated: 8287104: AddressChangeListener thread inherits CCL and can cause memory leak for webapp-servers

2022-05-25 Thread Jaikiran Pai
On Sun, 22 May 2022 08:20:21 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which addresses > https://bugs.openjdk.java.net/browse/JDK-8287104? > > The change in this commit now uses an `InnocuousThread` to create a thread > with `null` context classloader

Re: RFR: 8287104: AddressChangeListener thread inherits CCL and can cause memory leak for webapp-servers [v3]

2022-05-25 Thread Jaikiran Pai
instead of the usual system wide auto-generated > name. > > No new tests have been added for this change. Existing tier1, tier2 and tier3 > tests have been run and no related failures have been noticed. Jaikiran Pai has updated the pull request incrementally with one additional commit

Re: RFR: 8287104: AddressChangeListener thread inherits CCL and can cause memory leak for webapp-servers

2022-05-23 Thread Jaikiran Pai
On Sun, 22 May 2022 08:20:21 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which addresses > https://bugs.openjdk.java.net/browse/JDK-8287104? > > The change in this commit now uses an `InnocuousThread` to create a thread > with `null` context classloader

Re: RFR: 8287104: AddressChangeListener thread inherits CCL and can cause memory leak for webapp-servers [v2]

2022-05-23 Thread Jaikiran Pai
instead of the usual system wide auto-generated > name. > > No new tests have been added for this change. Existing tier1, tier2 and tier3 > tests have been run and no related failures have been noticed. Jaikiran Pai has updated the pull request incrementally with one additional commit s

RFR: 8287104: AddressChangeListener thread inherits CCL and can cause memory leak for webapp-servers

2022-05-22 Thread Jaikiran Pai
Can I please get a review of this change which addresses https://bugs.openjdk.java.net/browse/JDK-8287104? The change in this commit now uses an `InnocuousThread` to create a thread with `null` context classloader. The `Runnable` task of this thread just invokes a native method through JNI to

Re: RFR: 8283544: HttpClient GET method adds Content-Length: 0 header [v8]

2022-05-16 Thread Jaikiran Pai
On Mon, 16 May 2022 08:59:43 GMT, Conor Cleary wrote: >> **Issue** >> When using the `HttpClient.send()` to send a GET request created using the >> `HttpRequest.newBuilder()`, a `Content-length: 0` header is set. This >> behaviour causes issues with many services as a body related header is

Integrated: 8209137: Add ability to bind to specific local address to HTTP client

2022-05-16 Thread Jaikiran Pai
On Fri, 3 Dec 2021 06:15:31 GMT, Jaikiran Pai wrote: > This change proposes to implement the enhancement noted in > https://bugs.openjdk.java.net/browse/JDK-8209137. > > The change introduces a new API to allow applications to build a > `java.net.http.HTTPClient` configured

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v20]

2022-05-16 Thread Jaikiran Pai
On Sun, 15 May 2022 06:43:27 GMT, Jaikiran Pai wrote: >> This change proposes to implement the enhancement noted in >> https://bugs.openjdk.java.net/browse/JDK-8209137. >> >> The change introduces a new API to allow applications to build a >> `java.n

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v20]

2022-05-16 Thread Jaikiran Pai
On Sun, 15 May 2022 06:43:27 GMT, Jaikiran Pai wrote: >> This change proposes to implement the enhancement noted in >> https://bugs.openjdk.java.net/browse/JDK-8209137. >> >> The change introduces a new API to allow applications to build a >> `java.n

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v20]

2022-05-15 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision: Use the byte[] address form for testing the client address instead of relying on hostname which doesn't always return localhost for 12

Re: RFR: 8283544: HttpClient GET method adds Content-Length: 0 header [v7]

2022-05-12 Thread Jaikiran Pai
On Thu, 12 May 2022 12:01:23 GMT, Conor Cleary wrote: > Will await further review for a short while and then integrate if approved. Hello Conor, looking at the latest state of the PR, I think you might have missed Daniel's review comment

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v19]

2022-05-11 Thread Jaikiran Pai
On Tue, 10 May 2022 13:51:37 GMT, Jaikiran Pai wrote: >> This change proposes to implement the enhancement noted in >> https://bugs.openjdk.java.net/browse/JDK-8209137. >> >> The change introduces a new API to allow applications to build a >> `java.n

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v19]

2022-05-11 Thread Jaikiran Pai
On Wed, 11 May 2022 08:12:12 GMT, Michael McMahon wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix javadoc link in test > > src/java.net.http/share/classes/java/net/http/HttpC

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v18]

2022-05-10 Thread Jaikiran Pai
On Tue, 10 May 2022 13:35:35 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Daniel's review suggestion - add a test to verify the behaviour of the >>

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v18]

2022-05-10 Thread Jaikiran Pai
On Tue, 10 May 2022 12:37:47 GMT, Jaikiran Pai wrote: >> This change proposes to implement the enhancement noted in >> https://bugs.openjdk.java.net/browse/JDK-8209137. >> >> The change introduces a new API to allow applications to build a >> `java.n

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v19]

2022-05-10 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision: fix javadoc link in test - Changes: - all: https://git.openjdk.java.net/jdk/pull/6690/files - new: https://git.openjdk.java.net/j

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v17]

2022-05-10 Thread Jaikiran Pai
On Mon, 9 May 2022 13:31:38 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 37 commits: >> >> - Merge latest from master branch >> - add a @build to force

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v18]

2022-05-10 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request incrementally with two additional commits since the last revision: - Daniel's review suggestion - add a test to verify the behaviour of the localAddress() default method implementation on HttpClient.Builder

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v17]

2022-05-09 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 37 commits: - Merge latest from master branch - add a @build to force jtreg to show consistent test results and add the re

Re: RFR: 8286194: ExecutorShutdown test fails intermittently [v2]

2022-05-06 Thread Jaikiran Pai
On Fri, 6 May 2022 09:14:53 GMT, Daniel Fuchs wrote: >> src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java >> line 1039: >> >>> 1037: e.abort(selectorClosedException()); >>> 1038: } else { >>> 1039: selector.wakeup(); >> >>

Re: RFR: 8286194: ExecutorShutdown test fails intermittently [v2]

2022-05-06 Thread Jaikiran Pai
On Fri, 6 May 2022 09:38:38 GMT, Daniel Fuchs wrote: >> Hi, please find here a patch that solves a rare intermittent test failure >> observed in the test `java/net/httpclient/ExecutorShutdown.java` >> >> A race condition coupled with some too eager synchronization was causing a >> deadlock

Re: RFR: 8286194: ExecutorShutdown test fails intermittently

2022-05-05 Thread Jaikiran Pai
On Thu, 5 May 2022 19:03:13 GMT, Daniel Fuchs wrote: > Hi, please find here a patch that solves a rare intermittent test failure > observed in the test `java/net/httpclient/ExecutorShutdown.java` > > A race condition coupled with some too eager synchronization was causing a > deadlock between

Re: RFR: 8286194: ExecutorShutdown test fails intermittently

2022-05-05 Thread Jaikiran Pai
On Thu, 5 May 2022 19:03:13 GMT, Daniel Fuchs wrote: > Hi, please find here a patch that solves a rare intermittent test failure > observed in the test `java/net/httpclient/ExecutorShutdown.java` > > A race condition coupled with some too eager synchronization was causing a > deadlock between

Re: RFR: 8286194: ExecutorShutdown test fails intermittently

2022-05-05 Thread Jaikiran Pai
On Thu, 5 May 2022 19:03:13 GMT, Daniel Fuchs wrote: > Hi, please find here a patch that solves a rare intermittent test failure > observed in the test `java/net/httpclient/ExecutorShutdown.java` > > A race condition coupled with some too eager synchronization was causing a > deadlock between

Re: RFR: 8286194: ExecutorShutdown test fails intermittently

2022-05-05 Thread Jaikiran Pai
On Thu, 5 May 2022 19:03:13 GMT, Daniel Fuchs wrote: > Hi, please find here a patch that solves a rare intermittent test failure > observed in the test `java/net/httpclient/ExecutorShutdown.java` > > A race condition coupled with some too eager synchronization was causing a > deadlock between

Re: RFR: JDK-8280498: jdk/java/net/Inet4Address/PingThis.java fails on AIX [v4]

2022-04-29 Thread Jaikiran Pai
On Fri, 29 Apr 2022 12:11:27 GMT, Michael Felt wrote: >> Good catch! > > too much Python (no semi-colons) - great catch. > > Looking into how to verify proposed changes using jenkins (adoptium). When > not in aqa-tests, more difficult (for me) too get it tested. (aka Better next > time).

Re: RFR: JDK-8285504 Minor cleanup could be done in javax.net [v2]

2022-04-25 Thread Jaikiran Pai
On Tue, 26 Apr 2022 00:27:43 GMT, Mark Powers wrote: >> https://bugs.openjdk.java.net/browse/JDK-8285504 >> >> JDK-8273046 is the umbrella bug for this bug. The changes were too large for >> a single code review, so it was decided to split into smaller chunks. This >> is one such chunk: >>

Re: RFR: 8284892: java/net/httpclient/http2/TLSConnection.java fails intermittently [v2]

2022-04-14 Thread Jaikiran Pai
On Thu, 14 Apr 2022 18:45:10 GMT, Daniel Fuchs wrote: >> java/net/httpclient/http2/TLSConnection.java has been observed failing (even >> though rarely) in test jobs. >> >> The issue is that the handler used on the the server sides maintains a >> volatile `sslSession` field which it sets when

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v15]

2022-04-10 Thread Jaikiran Pai
On Mon, 4 Apr 2022 09:53:02 GMT, Jaikiran Pai wrote: >> This change proposes to implement the enhancement noted in >> https://bugs.openjdk.java.net/browse/JDK-8209137. >> >> The change introduces a new API to allow applications to build a >> `java.n

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v16]

2022-04-10 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request incrementally with two additional commits since the last revision: - Implement HttpServerAdapters in test as suggested by Daniel - fix check when security manager is enabled - Chang

Re: RFR: 8283544: HttpClient GET method adds Content-Length: 0 header [v5]

2022-04-08 Thread Jaikiran Pai
On Fri, 8 Apr 2022 09:35:31 GMT, Jaikiran Pai wrote: > This is unlike other methods, for example DELETE() where the body publisher > itself is null. In the case of HEAD the body publisher is present but it > still represents that there's no body to that request. Please disregard

Re: RFR: 8283544: HttpClient GET method adds Content-Length: 0 header [v5]

2022-04-08 Thread Jaikiran Pai
On Thu, 7 Apr 2022 13:53:35 GMT, Conor Cleary wrote: >> **Issue** >> When using the `HttpClient.send()` to send a GET request created using the >> `HttpRequest.newBuilder()`, a `Content-length: 0` header is set. This >> behaviour causes issues with many services as a body related header is >>

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v14]

2022-04-06 Thread Jaikiran Pai
On Mon, 4 Apr 2022 09:52:56 GMT, Jaikiran Pai wrote: >> src/java.net.http/share/classes/jdk/internal/net/http/HttpClientBuilderImpl.java >> line 140: >> >>> 138: return this; >>> 139: } >>> 140: >> >> Either

Re: RFR: 8283772: Make sun.net.dns.ResolverConfiguration sealed

2022-03-29 Thread Jaikiran Pai
On Mon, 28 Mar 2022 21:44:36 GMT, Aleksei Efimov wrote: > The following fix seals `sun.net.dns.ResolverConfiguration` abstract class. > `sun.net.dns.ResolverConfigurationImpl` is the only permitted subclass which > has two O/S specific implementations: for `Windows` and `Unix` architectures. >

Re: RFR: 8281223: Improve the API documentation of HttpRequest.Builder::build to state that the default implementation provided by the JDK returns immutable objects. [v2]

2022-03-25 Thread Jaikiran Pai
On Tue, 15 Feb 2022 15:33:01 GMT, Conor Cleary wrote: >> As described in the title, this is a simple change to the >> `HttpRequest.Builder::build` method to highlight that an immutable and >> reusable instance of an `HttpRequest` is created when this method is >> invoked. This is done by

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v14]

2022-03-24 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 28 additional commits since the last revision: -

Re: RFR: 8282917: Remove InetAddressImplFactory from InetAddress [v3]

2022-03-16 Thread Jaikiran Pai
On Wed, 16 Mar 2022 17:47:15 GMT, Aleksei Efimov wrote: >> Thanks for noticing that Jaikiran! >> >> Both `ipv4_available()` and `ipv6_available()` are defined to return `jint` >> so the implementation in `Java_java_net_InetAddress_isIPv6Supported` is >> arguably the more correct (provided

Re: RFR: 8282917: Remove InetAddressImplFactory from InetAddress [v3]

2022-03-16 Thread Jaikiran Pai
On Wed, 16 Mar 2022 17:51:17 GMT, Aleksei Efimov wrote: >> Hi, >> >> This cleanup change removes `InetAddressImplFactory` class from >> `InetAddress`. The list of changes: >> - Remove `InetAddressImplFactory` from `InetAddress` >> - Since `isIPv6Supported` native code is identical for Windows

Re: RFR: 8282917: Remove InetAddressImplFactory from InetAddress

2022-03-16 Thread Jaikiran Pai
On Wed, 16 Mar 2022 13:26:36 GMT, Aleksei Efimov wrote: > Hi, > > This cleanup change removes `InetAddressImplFactory` class from > `InetAddress`. The list of changes: > - Remove `InetAddressImplFactory` from `InetAddress` > - Since `isIPv6Supported` native code is identical for Windows and

Re: RFR: 8282917: Remove InetAddressImplFactory from InetAddress

2022-03-16 Thread Jaikiran Pai
On Wed, 16 Mar 2022 13:26:36 GMT, Aleksei Efimov wrote: > Hi, > > This cleanup change removes `InetAddressImplFactory` class from > `InetAddress`. The list of changes: > - Remove `InetAddressImplFactory` from `InetAddress` > - Since `isIPv6Supported` native code is identical for Windows and

Re: RFR: 8282536: java.net.InetAddress should be a sealed class

2022-03-12 Thread Jaikiran Pai
On Fri, 11 Mar 2022 16:47:46 GMT, Aleksei Efimov wrote: > The following fix seals the `java.net.InetAddress` class and permits only two > implementations - `java.net.Inet4Address` and `java.net.Inet6Address`. > > No issues have been detected by regression and JCK tests. > > Links:

Re: RFR: 8254786: java/net/httpclient/CancelRequestTest.java failing intermittently [v3]

2022-03-11 Thread Jaikiran Pai
On Thu, 10 Mar 2022 17:05:32 GMT, Daniel Fuchs wrote: >> Please find enclosed a patch that solves an intermittent issue detected by >> the CancelRequestTest.java >> >> If during an HTTP upgrade from HTTP/1.1 to HTTP/2, the request is cancelled >> after the Http2Connection has been created,

Re: RFR: 8277969: HttpClient SelectorManager shuts down when custom Executor rejects a task [v3]

2022-03-11 Thread Jaikiran Pai
On Thu, 10 Mar 2022 11:17:26 GMT, Daniel Fuchs wrote: >> These changes make sure that pending requests are terminated if the selector >> manager thread exits due to exceptions. >> This includes: >>1. completing CompletableFutures that were returned to the caller code >>2. cancelling

Re: RFR: 8254786: java/net/httpclient/CancelRequestTest.java failing intermittently [v3]

2022-03-11 Thread Jaikiran Pai
On Fri, 11 Mar 2022 10:07:21 GMT, Daniel Fuchs wrote: >> src/java.net.http/share/classes/jdk/internal/net/http/Http2ClientImpl.java >> line 162: >> >>> 160: >>> 161: String key = c.key(); >>> 162: synchronized(this) { >> >> Hello Daniel, it's not fully clear to me why this

Re: RFR: 8254786: java/net/httpclient/CancelRequestTest.java failing intermittently [v3]

2022-03-11 Thread Jaikiran Pai
On Fri, 11 Mar 2022 10:12:46 GMT, Daniel Fuchs wrote: >> src/java.net.http/share/classes/jdk/internal/net/http/Http2ClientImpl.java >> line 170: >> >>> 168: Http2Connection c1 = connections.putIfAbsent(key, c); >>> 169: if (c1 != null) { >>> 170:

Re: RFR: 8254786: java/net/httpclient/CancelRequestTest.java failing intermittently [v3]

2022-03-10 Thread Jaikiran Pai
On Thu, 10 Mar 2022 17:05:32 GMT, Daniel Fuchs wrote: >> Please find enclosed a patch that solves an intermittent issue detected by >> the CancelRequestTest.java >> >> If during an HTTP upgrade from HTTP/1.1 to HTTP/2, the request is cancelled >> after the Http2Connection has been created,

Re: RFR: 8254786: java/net/httpclient/CancelRequestTest.java failing intermittently [v3]

2022-03-10 Thread Jaikiran Pai
On Thu, 10 Mar 2022 17:05:32 GMT, Daniel Fuchs wrote: >> Please find enclosed a patch that solves an intermittent issue detected by >> the CancelRequestTest.java >> >> If during an HTTP upgrade from HTTP/1.1 to HTTP/2, the request is cancelled >> after the Http2Connection has been created,

Re: RFR: 8277969: HttpClient SelectorManager shuts down when custom Executor rejects a task [v3]

2022-03-10 Thread Jaikiran Pai
On Thu, 10 Mar 2022 10:41:23 GMT, Daniel Fuchs wrote: > The acquire() method will return true the first time it's been called. And it > is called only once. So we only need to check whether acquired is true at > places where we are in doubt about whether the method has been called. I see what

Re: RFR: 8277969: HttpClient SelectorManager shuts down when custom Executor rejects a task [v2]

2022-03-10 Thread Jaikiran Pai
On Wed, 9 Mar 2022 16:54:58 GMT, Daniel Fuchs wrote: >> These changes make sure that pending requests are terminated if the selector >> manager thread exits due to exceptions. >> This includes: >>1. completing CompletableFutures that were returned to the caller code >>2. cancelling

Re: RFR: 8277969: HttpClient SelectorManager shuts down when custom Executor rejects a task [v2]

2022-03-10 Thread Jaikiran Pai
On Wed, 9 Mar 2022 12:09:48 GMT, Daniel Fuchs wrote: >> src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java >> line 179: >> >>> 177: } catch (Throwable t) { >>> 178: errorHandler.accept(command, t); >>> 179:

Re: RFR: 8277969: HttpClient SelectorManager shuts down when custom Executor rejects a task [v2]

2022-03-10 Thread Jaikiran Pai
On Wed, 9 Mar 2022 11:55:27 GMT, Daniel Fuchs wrote: > Here we don't need to check whether it's been acquired because we know it's > been acquired if we reach here. Hello Daniel, may be I am misreading the diff but from what I can see, the `acquire()` method now returns a `boolean` which we

Re: RFR: 8277969: HttpClient SelectorManager shuts down when custom Executor rejects a task

2022-03-09 Thread Jaikiran Pai
On Mon, 24 Jan 2022 14:25:09 GMT, Daniel Fuchs wrote: > These changes make sure that pending requests are terminated if the selector > manager thread exits due to exceptions. > This includes: >1. completing CompletableFutures that were returned to the caller code >2. cancelling requests

Integrated: 8282617: sun.net.www.protocol.https.HttpsClient#putInKeepAliveCache() doesn't use a lock while dealing with "inCache" field

2022-03-06 Thread Jaikiran Pai
On Thu, 3 Mar 2022 16:13:37 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which proposes to fix the issue > noted in https://bugs.openjdk.java.net/browse/JDK-8282617? > > The `HttpClient` class uses a `inCache` (internal) field to keep track of > wheth

Re: RFR: 8282617: sun.net.www.protocol.https.HttpsClient#putInKeepAliveCache() doesn't use a lock while dealing with inCache field

2022-03-05 Thread Jaikiran Pai
On Thu, 3 Mar 2022 16:13:37 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which proposes to fix the issue > noted in https://bugs.openjdk.java.net/browse/JDK-8282617? > > The `HttpClient` class uses a `inCache` (internal) field to keep track of > wheth

Re: RFR: 8281561: Disable http DIGEST mechanism with MD5 by default

2022-03-05 Thread Jaikiran Pai
On Fri, 4 Mar 2022 09:37:21 GMT, Michael McMahon wrote: > Hi, > > Could I get the following change reviewed please, which is to disable the MD5 > message digest algorithm by default in the HTTP Digest authentication > mechanism? The algorithm can be opted into by setting a new system property

Re: RFR: 8281561: Disable http DIGEST mechanism with MD5 by default

2022-03-04 Thread Jaikiran Pai
On Fri, 4 Mar 2022 14:06:14 GMT, Daniel Fuchs wrote: >> src/java.base/share/classes/java/net/doc-files/net-properties.html line 227: >> >>> 225: name. >>> 226: >>> 227:{@systemProperty http.auth.digest.reEnabledAlgs} >>> (default: none) >> >> Hello Michael, from

Re: RFR: 8281561: Disable http DIGEST mechanism with MD5 by default

2022-03-04 Thread Jaikiran Pai
On Fri, 4 Mar 2022 09:37:21 GMT, Michael McMahon wrote: > Hi, > > Could I get the following change reviewed please, which is to disable the MD5 > message digest algorithm by default in the HTTP Digest authentication > mechanism? The algorithm can be opted into by setting a new system property

Re: RFR: 8281561: Disable http DIGEST mechanism with MD5 by default

2022-03-04 Thread Jaikiran Pai
On Fri, 4 Mar 2022 09:37:21 GMT, Michael McMahon wrote: > Hi, > > Could I get the following change reviewed please, which is to disable the MD5 > message digest algorithm by default in the HTTP Digest authentication > mechanism? The algorithm can be opted into by setting a new system property

Re: RFR: 8281561: Disable http DIGEST mechanism with MD5 by default

2022-03-04 Thread Jaikiran Pai
On Fri, 4 Mar 2022 09:37:21 GMT, Michael McMahon wrote: > Hi, > > Could I get the following change reviewed please, which is to disable the MD5 > message digest algorithm by default in the HTTP Digest authentication > mechanism? The algorithm can be opted into by setting a new system property

Re: RFR: 8281561: Disable http DIGEST mechanism with MD5 by default

2022-03-04 Thread Jaikiran Pai
On Fri, 4 Mar 2022 09:37:21 GMT, Michael McMahon wrote: > Hi, > > Could I get the following change reviewed please, which is to disable the MD5 > message digest algorithm by default in the HTTP Digest authentication > mechanism? The algorithm can be opted into by setting a new system property

Re: RFR: 8281561: Disable http DIGEST mechanism with MD5 by default

2022-03-04 Thread Jaikiran Pai
On Fri, 4 Mar 2022 09:37:21 GMT, Michael McMahon wrote: > Hi, > > Could I get the following change reviewed please, which is to disable the MD5 > message digest algorithm by default in the HTTP Digest authentication > mechanism? The algorithm can be opted into by setting a new system property

RFR: 8282617: sun.net.www.protocol.https.HttpsClient#putInKeepAliveCache() doesn't use a lock while dealing with inCache field

2022-03-03 Thread Jaikiran Pai
Can I please get a review of this change which proposes to fix the issue noted in https://bugs.openjdk.java.net/browse/JDK-8282617? The `HttpClient` class uses a `inCache` (internal) field to keep track of whether a connection is in the keep-alive cache. This is a mutable field and when

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v13]

2022-02-28 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 27 additional commits since the last revision: -

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v12]

2022-02-21 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 26 additional commits since the last revision: -

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v11]

2022-02-14 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 25 additional commits since the last revision

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v9]

2022-02-03 Thread Jaikiran Pai
On Wed, 2 Feb 2022 10:37:54 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> minor - rename variable in test > > src/java.net.http/share/classes/java/net/http/HttpC

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v10]

2022-02-03 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision: fix javadoc to mention HttpClient instead of HTTPClient - Changes: - all: https://git.openjdk.java.net/jdk/pull/6690/fi

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v9]

2022-02-01 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision: minor - rename variable in test - Changes: - all: https://git.openjdk.java.net/jdk/pull/6690/files - new: https://git.openjdk

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v9]

2022-02-01 Thread Jaikiran Pai
On Tue, 7 Dec 2021 14:28:01 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> minor - rename variable in test > > Generally it would be good if the te

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v8]

2022-02-01 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 22 additional commits since the last revision: -

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v7]

2022-01-25 Thread Jaikiran Pai
e creating `Socket`(s) for connections. Jaikiran Pai has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 21 additional commits since the last revision: -

Re: RFR: 8278398: jwebserver: Add test to confirm maximum request time [v2]

2022-01-13 Thread Jaikiran Pai
Thank you Julia, these new changes look fine to me. -Jaikiran On 13/01/22 9:09 pm, Julia Boes wrote: On Thu, 13 Jan 2022 04:52:25 GMT, Jaikiran Pai wrote: Julia Boes has updated the pull request incrementally with one additional commit since the last revision: address PR comments

Re: RFR: 8209137: Add ability to bind to specific local address to HTTP client [v6]

2022-01-13 Thread Jaikiran Pai
On Wed, 12 Jan 2022 08:48:12 GMT, Jaikiran Pai wrote: >> This change proposes to implement the enhancement noted in >> https://bugs.openjdk.java.net/browse/JDK-8209137. >> >> The change introduces a new API to allow applications to build a >> `java.n

Integrated: 8278961: Enable debug logging in java/net/DatagramSocket/SendDatagramToBadAddress.java

2022-01-13 Thread Jaikiran Pai
On Fri, 17 Dec 2021 14:52:53 GMT, Jaikiran Pai wrote: > Can I please get a review for this test only change which proposes to enable > debug logs from the test that failed intermittently? This change addresses > https://bugs.openjdk.java.net/browse/JDK-8278961. > > The change p

Re: RFR: 8278961: Enable debug logging in java/net/DatagramSocket/SendDatagramToBadAddress.java

2022-01-13 Thread Jaikiran Pai
On Fri, 17 Dec 2021 16:35:18 GMT, Daniel Jelinski wrote: >> Can I please get a review for this test only change which proposes to enable >> debug logs from the test that failed intermittently? This change addresses >> https://bugs.openjdk.java.net/browse/JDK-8278961. >> >> The change passes

Re: RFR: 8278398: jwebserver: Add test to confirm maximum request time

2022-01-12 Thread Jaikiran Pai
On Wed, 12 Jan 2022 16:59:14 GMT, Julia Boes wrote: > This new test confirms that the jwebserver does not wait indefinitely for a > request to arrive, but instead closes the connection when the maximum request > time is reached. To facilitate this, Exchange::run is amended to process >

Re: RFR: 8278961: Enable debug logging in java/net/DatagramSocket/SendDatagramToBadAddress.java [v2]

2022-01-12 Thread Jaikiran Pai
On Wed, 12 Jan 2022 14:22:14 GMT, Daniel Fuchs wrote: >> test/jdk/java/net/DatagramSocket/SendDatagramToBadAddress.java line 27: >> >>> 25: * @test >>> 26: * >>> 27: * @bug 4204320 8278961 >> >> Ah - can you remove 8278961 from the bug list before integrating? > > `@bug` is supposed to be

Re: RFR: 8278961: Enable debug logging in java/net/DatagramSocket/SendDatagramToBadAddress.java [v2]

2022-01-12 Thread Jaikiran Pai
> Got expected exception: java.net.PortUnreachableException > Got expected exception: java.net.PortUnreachableException Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision: fix @bug in test definition and fix copyright year --

Re: RFR: 8278961: Enable debug logging in java/net/DatagramSocket/SendDatagramToBadAddress.java

2022-01-12 Thread Jaikiran Pai
On Mon, 20 Dec 2021 17:36:50 GMT, Mark Sheppard wrote: >> Right. Looks like `OSsupportsFeature` was used to filter out systems that >> don't send "port unreachable"; we could probably use it here if the failure >> turns out to be OS-specific. >> >> Additional logs look fine. > > as I

  1   2   3   >