RFR: 8288885: Introduce a jwebserver launcher utility in test library for jtreg tests

2022-06-21 Thread Jaikiran Pai
Can I please get a review for this change which adds a utility to the JDK test library to help launch the JWebServer? As noted in the JBS issue, this utility does the necessary work to make sure when the `launch()` method returns, the jwebserver is ready to receive requests. This helps remove a

Re: RFR: 8288885: Introduce a jwebserver launcher utility in test library for jtreg tests

2022-06-22 Thread Jaikiran Pai
On Wed, 22 Jun 2022 06:09:39 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which adds a utility to the JDK > test library to help launch the JWebServer? As noted in the JBS issue, this > utility does the necessary work to make sure when the `launch()` method

Re: RFR: 8288885: Introduce a jwebserver launcher utility in test library for jtreg tests [v2]

2022-06-22 Thread Jaikiran Pai
passed without any related issues. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision: clarify that the jwebserver is launched as a separate process and needs to be destroyed by the caller when it's no longer needed - Cha

Re: RFR: 8288885: Introduce a jwebserver launcher utility in test library for jtreg tests

2022-06-22 Thread Jaikiran Pai
On Wed, 22 Jun 2022 06:09:39 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which adds a utility to the JDK > test library to help launch the JWebServer? As noted in the JBS issue, this > utility does the necessary work to make sure when the `launch()` method

Re: RFR: 8288885: Introduce a jwebserver launcher utility in test library for jtreg tests [v2]

2022-06-22 Thread Jaikiran Pai
On Wed, 22 Jun 2022 08:01:31 GMT, Alan Bateman wrote: > My main concern with locating JWebServerLauncher in the lib tree is that I > don't have a good feel yet what tests might want an out-of-process HTTP > server. The use case that prompted me to create this utility is a very specific case w

Re: RFR: 8276798: HttpURLConnection sends invalid HTTP request

2022-06-22 Thread Jaikiran Pai
On Wed, 22 Jun 2022 14:28:25 GMT, Michael McMahon wrote: > Probably need to add noreg-hard label to bug. Done. Thank you Daniel and Michael for the reviews. - PR: https://git.openjdk.org/jdk/pull/9038

Integrated: 8276798: HttpURLConnection sends invalid HTTP request

2022-06-22 Thread Jaikiran Pai
On Mon, 6 Jun 2022 09:43:50 GMT, Jaikiran Pai wrote: > 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

RFR: 8288983: broken link in com.sun.net.httpserver.SimpleFileServer

2022-06-24 Thread Jaikiran Pai
Can I please get a review for this change which fixes the broken link in the javadoc of `SimpleFileServer`? This fixes https://bugs.openjdk.org/browse/JDK-8288983 which has the necessary context on why/when this link broke. I used the doccheck tool https://urldefense.com/v3/__https://github.co

Integrated: 8288983: broken link in com.sun.net.httpserver.SimpleFileServer

2022-06-24 Thread Jaikiran Pai
On Fri, 24 Jun 2022 08:49:06 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which fixes the broken link in the > javadoc of `SimpleFileServer`? This fixes > https://bugs.openjdk.org/browse/JDK-8288983 which has the necessary context > on why/when this link b

Re: RFR: 8288983: broken link in com.sun.net.httpserver.SimpleFileServer

2022-06-24 Thread Jaikiran Pai
On Fri, 24 Jun 2022 08:49:06 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which fixes the broken link in the > javadoc of `SimpleFileServer`? This fixes > https://bugs.openjdk.org/browse/JDK-8288983 which has the necessary context > on why/when this link b

Re: RFR: JDK-8288746: HttpClient resources could be reclaimed more eagerly

2022-06-25 Thread Jaikiran Pai
On Mon, 20 Jun 2022 14:09:27 GMT, Daniel Fuchs wrote: > Hi, > > Please find here a patch that should help the HttpClient's SelectorManager > thread to terminate more timely, allowing the resources consumed by the > client to be released earlier. > > The idea is to use a Cleaner registered wit

Re: RFR: JDK-8288746: HttpClient resources could be reclaimed more eagerly

2022-06-27 Thread Jaikiran Pai
On Sun, 26 Jun 2022 06:08:07 GMT, Jaikiran Pai wrote: >> Hi, >> >> Please find here a patch that should help the HttpClient's SelectorManager >> thread to terminate more timely, allowing the resources consumed by the >> client to be released earlier.

Re: RFR: JDK-8288746: HttpClient resources could be reclaimed more eagerly

2022-06-27 Thread Jaikiran Pai
On Mon, 20 Jun 2022 14:09:27 GMT, Daniel Fuchs wrote: > Hi, > > Please find here a patch that should help the HttpClient's SelectorManager > thread to terminate more timely, allowing the resources consumed by the > client to be released earlier. > > The idea is to use a Cleaner registered wit

Re: RFR: 8288885: Introduce a jwebserver launcher utility in test library for jtreg tests [v2]

2022-06-28 Thread Jaikiran Pai
On Wed, 22 Jun 2022 07:44:34 GMT, Jaikiran Pai wrote: >> Can I please get a review for this change which adds a utility to the JDK >> test library to help launch the JWebServer? As noted in the JBS issue, this >> utility does the necessary work to make sure when the

Withdrawn: 8288885: Introduce a jwebserver launcher utility in test library for jtreg tests

2022-06-28 Thread Jaikiran Pai
On Wed, 22 Jun 2022 06:09:39 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which adds a utility to the JDK > test library to help launch the JWebServer? As noted in the JBS issue, this > utility does the necessary work to make sure when the `launch()` method

RFR: 8289291: HttpServer sets incorrect value for "max" parameter in Keep-Alive header value

2022-06-29 Thread Jaikiran Pai
Can I please get a review for this change which addresses https://bugs.openjdk.org/browse/JDK-8289291? As noted in that issue, right now, the Http(s)Server sets an incorrect value for the `max` parameter of the `Keep-Alive` header. The `max` value is supposed to be the number of subsequent requ

Re: RFR: 8289291: HttpServer sets incorrect value for "max" parameter in Keep-Alive header value [v2]

2022-06-29 Thread Jaikiran Pai
On Wed, 29 Jun 2022 10:58:34 GMT, Michael McMahon wrote: > Could we add a test (even to an existing keepalive one) to verify that "max" > is no longer sent? Done. I've updated the PR to include a new test which verifies the absence of the `max` parameter in the `Keep-Alive` response header. Th

Re: RFR: 8289291: HttpServer sets incorrect value for "max" parameter in Keep-Alive header value [v2]

2022-06-29 Thread Jaikiran Pai
s change won't cause any regressions in > that area. > > tier1, tier2 and tier3 testing passed without any related issues after this > change. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision: Michael's sugg

Re: RFR: 8289291: HttpServer sets incorrect value for "max" parameter in Keep-Alive header value [v2]

2022-06-29 Thread Jaikiran Pai
On Wed, 29 Jun 2022 15:12:01 GMT, Daniel Fuchs wrote: > Just wondering about using a simple Socket as the client (which is fine). I'd > expect it should be possible to see the value of the header with the new > HttpClient (unless we filter it?). The Http(s)Server will set the `Keep-Alive` head

Integrated: 8289291: HttpServer sets incorrect value for "max" parameter in Keep-Alive header value

2022-06-29 Thread Jaikiran Pai
On Wed, 29 Jun 2022 10:20:42 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which addresses > https://bugs.openjdk.org/browse/JDK-8289291? > > As noted in that issue, right now, the Http(s)Server sets an incorrect value > for the `max` parameter of

Re: RFR: 8289291: HttpServer sets incorrect value for "max" parameter in Keep-Alive header value [v2]

2022-06-29 Thread Jaikiran Pai
On Wed, 29 Jun 2022 12:05:42 GMT, Jaikiran Pai wrote: >> Can I please get a review for this change which addresses >> https://bugs.openjdk.org/browse/JDK-8289291? >> >> As noted in that issue, right now, the Http(s)Server sets an incorrect value >> for the `max

Re: RFR: JDK-8286610: Add additional diagnostic output to java/net/DatagramSocket/InterruptibleDatagramSocket.java [v3]

2022-06-29 Thread Jaikiran Pai
On Tue, 28 Jun 2022 17:19:32 GMT, Bill Huang wrote: >> Failure was observed on >> java/net/DatagramSocket/InterruptibleDatagramSocket.java where data was >> received unexpectedly ( >> [JDK-8286607](https://bugs.openjdk.org/browse/JDK-8286607)). This failure >> could be caused by interference

Re: RFR: 8289385: Cleanup redundant synchronization in Http2ClientImpl [v2]

2022-06-29 Thread Jaikiran Pai
On Wed, 29 Jun 2022 20:57:14 GMT, Andrey Turbanov wrote: >> Http2ClientImpl.stopping and Http2ClientImpl.failures are always accessed >> under synchronized(this). >> So we can remove 'volatile' modifier from 'stopping'. And remove >> 'synchronizedSet' wrapper from 'failures' > > Andrey Turbanov

Re: RFR: JDK-8286610: Add additional diagnostic output to java/net/DatagramSocket/InterruptibleDatagramSocket.java [v5]

2022-06-30 Thread Jaikiran Pai
On Thu, 30 Jun 2022 16:54:53 GMT, Bill Huang wrote: >> Failure was observed on >> java/net/DatagramSocket/InterruptibleDatagramSocket.java where data was >> received unexpectedly ( >> [JDK-8286607](https://bugs.openjdk.org/browse/JDK-8286607)). This failure >> could be caused by interference

Re: RFR: 8289617: Remove test/jdk/java/net/ServerSocket/ThreadStop.java

2022-07-06 Thread Jaikiran Pai
On Mon, 4 Jul 2022 13:03:46 GMT, Michael McMahon wrote: > Hi, > > Could I get the following small change reviewed please? > > It removes a test that calls Thread.stop() which is no longer required since > it was checking for > a bug in the old SocketImpl that has recently been replaced by the

Re: RFR: 8290083: ResponseBodyBeforeError: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message

2022-07-12 Thread Jaikiran Pai
On Mon, 11 Jul 2022 14:35:55 GMT, Daniel Fuchs wrote: > Please find enclosed a simple test fix. > This test has been observed failing once with an SSLException. My suspicion > is that some random process (other test or ...) has tried to connect to the > test ReplyingServer and sent some plain t

Re: RFR: 8290083: ResponseBodyBeforeError: AssertionError or SSLException: Unsupported or unrecognized SSL message [v2]

2022-07-12 Thread Jaikiran Pai
On Tue, 12 Jul 2022 08:17:35 GMT, Daniel Fuchs wrote: >> Please find enclosed a simple test fix. >> This test has been observed failing once with an SSLException. My suspicion >> is that some random process (other test or ...) has tried to connect to the >> test ReplyingServer and sent some pla

Re: RFR: 8276561: URL$DefaultFactory::PREFIX should be static final

2022-07-21 Thread Jaikiran Pai
On Thu, 21 Jul 2022 09:46:27 GMT, Michael McMahon wrote: > Hi, > > Could I get the following trivial code change reviewed please? Static > analysis shows one > static field declaration in java.net.URL that should be final. > > Thanks, > Michael. Marked as reviewed by jpai (Reviewer). --

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

2022-07-21 Thread Jaikiran Pai
On Thu, 21 Jul 2022 13:24:01 GMT, Jason Laber wrote: >> Conor Cleary has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8283544: Added in missing case > > It's tough to tell what versions this fix will get into. Will this go into a > Java

Re: RFR: 8290349: IP_DONTFRAGMENT doesn't set DF bit in IPv4 header

2022-07-21 Thread Jaikiran Pai
On Wed, 20 Jul 2022 17:19:50 GMT, Daniel Jeliński wrote: > This patch partially fixes the issue where IPv6 sockets were fragmenting > outgoing IPv4 datagrams even when IP_DONTFRAGMENT flag was set. Specifically, > it fixes the issue on Linux and Windows. As far as I could tell, the issue is >

Re: RFR: 8290861: Remove unused field URLJarFile.BUF_SIZE

2022-07-22 Thread Jaikiran Pai
On Thu, 21 Jul 2022 20:00:37 GMT, Andrey Turbanov wrote: > Static field 'BUF_SIZE' in the class > sun.net.[www.protocol.jar.URLJarFile](http://www.protocol.jar.urljarfile/) is > unused and can be removed. The change looks fine to me. The `BUF_SIZE` appears to be a left over from the change do

Re: RFR: 8285836: sun/net/www/http/KeepAliveCache/KeepAliveProperty.java failed with "RuntimeException: Failed in server" [v2]

2022-08-03 Thread Jaikiran Pai
On Wed, 3 Aug 2022 14:33:56 GMT, Daniel Jeliński wrote: >> This patch fixes a race condition in KeepAliveProperty test. The client >> thread could read the `pass` field and fail the test before the server >> thread had a chance to set the field value to `true`. The fix adds an >> explicit wait

Re: RFR: 8291637: HttpClient default keep alive timeout not followed if server sends invalid value

2022-08-04 Thread Jaikiran Pai
On Thu, 4 Aug 2022 20:41:33 GMT, Michael McMahon wrote: > Hi, > > Some new keep alive tests are exposing some old bugs. In this case if the > server sends an invalid timeout (say -20 seconds) we accept it creating a > timeout in the past. So, the first time the keep alive thread wakes up it >

Re: RFR: 8291637: HttpClient default keep alive timeout not followed if server sends invalid value [v2]

2022-08-05 Thread Jaikiran Pai
On Fri, 5 Aug 2022 10:32:56 GMT, Michael McMahon wrote: >> Hi, >> >> Some new keep alive tests are exposing some old bugs. In this case if the >> server sends an invalid timeout (say -20 seconds) we accept it creating a >> timeout in the past. So, the first time the keep alive thread wakes up

Re: RFR: 8291956: Simplify the loop condition in sun.net.httpserver.Request constructor

2022-08-05 Thread Jaikiran Pai
On Wed, 20 Jul 2022 14:02:39 GMT, thyecust wrote: > The condition at line 57 (after while) will evaluate to false > if startLine == null, so the previous if-condition is covered. Hello @thyecust, I've created a JBS issue to track this change https://bugs.openjdk.org/browse/JDK-8291956. Please c

Re: RFR: 8292381: java/net/httpclient/SpecialHeadersTest.java fails with "ERROR: Shutting down connection: HTTP/2 client stopped"

2022-08-17 Thread Jaikiran Pai
On Wed, 17 Aug 2022 17:06:12 GMT, Daniel Fuchs wrote: > Please find here a change that improves SpecialHeadersTest. This test creates > a large amount of ephemeral clients and has been observed running out of heap > space in our CI once. This change updates the test to wait for the previous >

Re: RFR: 8292381: java/net/httpclient/SpecialHeadersTest.java fails with "ERROR: Shutting down connection: HTTP/2 client stopped"

2022-08-17 Thread Jaikiran Pai
On Wed, 17 Aug 2022 17:06:12 GMT, Daniel Fuchs wrote: > Please find here a change that improves SpecialHeadersTest. This test creates > a large amount of ephemeral clients and has been observed running out of heap > space in our CI once. This change updates the test to wait for the previous >

Re: RFR: 8292381: java/net/httpclient/SpecialHeadersTest.java fails with "ERROR: Shutting down connection: HTTP/2 client stopped"

2022-08-18 Thread Jaikiran Pai
On Wed, 17 Aug 2022 17:06:12 GMT, Daniel Fuchs wrote: > Please find here a change that improves SpecialHeadersTest. This test creates > a large amount of ephemeral clients and has been observed running out of heap > space in our CI once. This change updates the test to wait for the previous >

Re: RFR: 8292381: java/net/httpclient/SpecialHeadersTest.java fails with "ERROR: Shutting down connection: HTTP/2 client stopped"

2022-08-18 Thread Jaikiran Pai
On Wed, 17 Aug 2022 17:06:12 GMT, Daniel Fuchs wrote: > Please find here a change that improves SpecialHeadersTest. This test creates > a large amount of ephemeral clients and has been observed running out of heap > space in our CI once. This change updates the test to wait for the previous >

Re: RFR: 8292381: java/net/httpclient/SpecialHeadersTest.java fails with "ERROR: Shutting down connection: HTTP/2 client stopped"

2022-08-18 Thread Jaikiran Pai
On Wed, 17 Aug 2022 17:06:12 GMT, Daniel Fuchs wrote: > Please find here a change that improves SpecialHeadersTest. This test creates > a large amount of ephemeral clients and has been observed running out of heap > space in our CI once. This change updates the test to wait for the previous >

Re: RFR: 8292381: java/net/httpclient/SpecialHeadersTest.java fails with "ERROR: Shutting down connection: HTTP/2 client stopped"

2022-08-18 Thread Jaikiran Pai
On Wed, 17 Aug 2022 17:06:12 GMT, Daniel Fuchs wrote: > Please find here a change that improves SpecialHeadersTest. This test creates > a large amount of ephemeral clients and has been observed running out of heap > space in our CI once. This change updates the test to wait for the previous >

Re: RFR: 8292381: java/net/httpclient/SpecialHeadersTest.java fails with "ERROR: Shutting down connection: HTTP/2 client stopped"

2022-08-18 Thread Jaikiran Pai
On Wed, 17 Aug 2022 17:06:12 GMT, Daniel Fuchs wrote: > Please find here a change that improves SpecialHeadersTest. This test creates > a large amount of ephemeral clients and has been observed running out of heap > space in our CI once. This change updates the test to wait for the previous >

Re: RFR: 8292381: java/net/httpclient/SpecialHeadersTest.java fails with "ERROR: Shutting down connection: HTTP/2 client stopped" [v2]

2022-08-19 Thread Jaikiran Pai
On Fri, 19 Aug 2022 10:51:32 GMT, Daniel Fuchs wrote: >> Please find here a change that improves SpecialHeadersTest. This test >> creates a large amount of ephemeral clients and has been observed running >> out of heap space in our CI once. This change updates the test to wait for >> the previ

RFR: 7113208: Incorrect javadoc on java.net.DatagramPacket.setLength()

2022-08-26 Thread Jaikiran Pai
Can I please get a review of this javadoc only change for `DatagramPacket#setLength()` method? This addresses https://bugs.openjdk.org/browse/JDK-7113208. I haven't create a CSR because the javadoc was already stating the correct behaviour in the `@throws` documentation as follows: > @throws

RFR: 8292968: java.net.ContentHandler's javadoc has a broken reference

2022-08-26 Thread Jaikiran Pai
Can I please get a review of this javadoc only change which addresses https://bugs.openjdk.org/browse/JDK-8292968? The updated javadoc now uses the `@systemProperty`, since this is the place where the semantics of this system property has been described. As per the expectations of `@systemPrope

Re: RFR: 7113208: Incorrect javadoc on java.net.DatagramPacket.setLength() [v2]

2022-08-26 Thread Jaikiran Pai
ocumentation as follows: > >> @throws IllegalArgumentExceptionif the length is negative, > * or if the length plus the offset is greater than the > * length of the packet's data buffer. > > This commit merely fixes the main part of the ja

Re: RFR: 7113208: Incorrect javadoc on java.net.DatagramPacket.setLength() [v2]

2022-08-26 Thread Jaikiran Pai
On Fri, 26 Aug 2022 08:55:27 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> implement review comment > > src/java.base/share/classes/java/net/DatagramPacket.java li

Re: RFR: 8292968: java.net.ContentHandler's javadoc has a broken reference

2022-08-26 Thread Jaikiran Pai
On Fri, 26 Aug 2022 11:49:48 GMT, Daniel Fuchs wrote: > but the property was documented before, so I now believe the CSR is not > needed. You are right. In fact, the Java 8 version of this class uses the system property name literally (as seen here https://docs.oracle.com/javase/8/docs/api/ja

Re: RFR: 8292968: java.net.ContentHandler's javadoc has a broken reference

2022-08-29 Thread Jaikiran Pai
On Fri, 26 Aug 2022 09:22:26 GMT, Jaikiran Pai wrote: > Can I please get a review of this javadoc only change which addresses > https://bugs.openjdk.org/browse/JDK-8292968? > > The updated javadoc now uses the `@systemProperty`, since this is the place > where the semantics

Integrated: 8292968: java.net.ContentHandler's javadoc has a broken reference

2022-08-29 Thread Jaikiran Pai
On Fri, 26 Aug 2022 09:22:26 GMT, Jaikiran Pai wrote: > Can I please get a review of this javadoc only change which addresses > https://bugs.openjdk.org/browse/JDK-8292968? > > The updated javadoc now uses the `@systemProperty`, since this is the place > where the semantics

Re: RFR: 7113208: Incorrect javadoc on java.net.DatagramPacket.setLength() [v3]

2022-09-01 Thread Jaikiran Pai
ocumentation as follows: > >> @throws IllegalArgumentExceptionif the length is negative, > * or if the length plus the offset is greater than the > * length of the packet's data buffer. > > This commit merely fixes the main part of the ja

Re: RFR: 7113208: Incorrect javadoc on java.net.DatagramPacket.setLength() [v2]

2022-09-01 Thread Jaikiran Pai
On Fri, 26 Aug 2022 10:15:59 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> implement review comment > > src/java.base/share/classes/java/net/DatagramPacket.java l

Re: RFR: 7113208: Incorrect javadoc on java.net.DatagramPacket.setLength() [v3]

2022-09-02 Thread Jaikiran Pai
On Thu, 1 Sep 2022 07:01:14 GMT, Jaikiran Pai wrote: >> Can I please get a review of this javadoc only change for >> `DatagramPacket#setLength()` method? This addresses >> https://bugs.openjdk.org/browse/JDK-7113208. >> >> I haven't create a CSR because

Integrated: 7113208: Incorrect javadoc on java.net.DatagramPacket.setLength()

2022-09-02 Thread Jaikiran Pai
On Fri, 26 Aug 2022 07:51:16 GMT, Jaikiran Pai wrote: > Can I please get a review of this javadoc only change for > `DatagramPacket#setLength()` method? This addresses > https://bugs.openjdk.org/browse/JDK-7113208. > > I haven't create a CSR because the javadoc was already

RFR: 8292044: HttpClient doesn't handle 102 or 103 properly

2022-09-05 Thread Jaikiran Pai
Can I please get a review of this change which proposes to fix https://bugs.openjdk.org/browse/JDK-8292044? The linked JBS issue notes two parts to fixing this. Part one is to (internally) ignore the intermediate 1xx informational responses, in the client and wait for subsequent final response

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v2]

2022-09-05 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request incrementally with two additional commits since the last rev

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v3]

2022-09-05 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last re

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v3]

2022-09-05 Thread Jaikiran Pai
On Tue, 6 Sep 2022 06:38:13 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8292044? >> >> The linked JBS issue notes two parts to fixing this. Part one is to >> (internall

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v3]

2022-09-05 Thread Jaikiran Pai
On Mon, 5 Sep 2022 15:06:37 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Reduce the time the test runs for > > src/java.net.http/share/classes/jdk/internal/n

Re: RFR: 8288717: Add a means to close idle connections in HTTP/2 connection pool

2022-09-06 Thread Jaikiran Pai
On Tue, 6 Sep 2022 13:56:15 GMT, Conor Cleary wrote: > **Issue** > When using HTTP/2 with the HttpClient, it can often be necessary to close an > idle Http2 Connection before a server sends a GOAWAY frame. For example, a > server or cloud based tool could close a TCP connection silently when it

Re: RFR: 8288717: Add a means to close idle connections in HTTP/2 connection pool

2022-09-06 Thread Jaikiran Pai
On Tue, 6 Sep 2022 13:56:15 GMT, Conor Cleary wrote: > **Issue** > When using HTTP/2 with the HttpClient, it can often be necessary to close an > idle Http2 Connection before a server sends a GOAWAY frame. For example, a > server or cloud based tool could close a TCP connection silently when it

Re: RFR: 8288717: Add a means to close idle connections in HTTP/2 connection pool

2022-09-06 Thread Jaikiran Pai
On Tue, 6 Sep 2022 13:56:15 GMT, Conor Cleary wrote: > **Issue** > When using HTTP/2 with the HttpClient, it can often be necessary to close an > idle Http2 Connection before a server sends a GOAWAY frame. For example, a > server or cloud based tool could close a TCP connection silently when it

Re: RFR: 8288717: Add a means to close idle connections in HTTP/2 connection pool

2022-09-07 Thread Jaikiran Pai
On Tue, 6 Sep 2022 13:56:15 GMT, Conor Cleary wrote: > **Issue** > When using HTTP/2 with the HttpClient, it can often be necessary to close an > idle Http2 Connection before a server sends a GOAWAY frame. For example, a > server or cloud based tool could close a TCP connection silently when it

Re: RFR: 8288717: Add a means to close idle connections in HTTP/2 connection pool

2022-09-07 Thread Jaikiran Pai
On Tue, 6 Sep 2022 13:56:15 GMT, Conor Cleary wrote: > **Issue** > When using HTTP/2 with the HttpClient, it can often be necessary to close an > idle Http2 Connection before a server sends a GOAWAY frame. For example, a > server or cloud based tool could close a TCP connection silently when it

Re: RFR: 8288717: Add a means to close idle connections in HTTP/2 connection pool

2022-09-07 Thread Jaikiran Pai
On Tue, 6 Sep 2022 13:56:15 GMT, Conor Cleary wrote: > **Issue** > When using HTTP/2 with the HttpClient, it can often be necessary to close an > idle Http2 Connection before a server sends a GOAWAY frame. For example, a > server or cloud based tool could close a TCP connection silently when it

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v4]

2022-09-09 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request incrementally with one additional commit since the las

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v4]

2022-09-09 Thread Jaikiran Pai
On Fri, 9 Sep 2022 07:06:32 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8292044? >> >> The linked JBS issue notes two parts to fixing this. Part one is to >> (internall

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v4]

2022-09-09 Thread Jaikiran Pai
On Fri, 9 Sep 2022 07:08:14 GMT, Jaikiran Pai wrote: > > Specifically, the RFC states that if the request is configured for > "Expect-Continue" and if the server still sends a `100` response That should read "the RFC states that if the request is *not* configur

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v4]

2022-09-09 Thread Jaikiran Pai
On Fri, 9 Sep 2022 07:06:32 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8292044? >> >> The linked JBS issue notes two parts to fixing this. Part one is to >> (internall

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v5]

2022-09-09 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revis

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v4]

2022-09-09 Thread Jaikiran Pai
On Fri, 9 Sep 2022 07:23:53 GMT, Julian Reschke wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> ignore 100 response when request isn't configured for expect continue > >

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v6]

2022-09-09 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v7]

2022-09-09 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v6]

2022-09-09 Thread Jaikiran Pai
On Fri, 9 Sep 2022 08:34:07 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> code comment adjustment > > test/jdk/java/net/httpclient/Response

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v6]

2022-09-09 Thread Jaikiran Pai
On Fri, 9 Sep 2022 09:03:06 GMT, Julian Reschke wrote: > FWIW, it would be awesome if an equivalent fix could be applied to > HTTPURLConnection. A brief look at the code in that area suggests that it might be relatively straightforward to fix that too. I'll check it out in more detail. --

RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages

2022-09-09 Thread Jaikiran Pai
Can I please get a review of this change which proposes to fix https://bugs.openjdk.org/browse/JDK-8170305? The commit in this PR changes the internal implementation of `HttpURLConnection` to ignore interim informational 1xx responses from server and continue to wait for the final response. Thi

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v8]

2022-09-09 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request incrementally with one additional commit sinc

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v7]

2022-09-09 Thread Jaikiran Pai
On Fri, 9 Sep 2022 09:57:09 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8292044? >> >> The linked JBS issue notes two parts to fixing this. Part one is to >> (internall

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v2]

2022-09-12 Thread Jaikiran Pai
ting is in progress with this change. Jaikiran Pai has updated the pull request incrementally with two additional commits since the last revision: - consider it a protocol violation if the server sends a 101 when the HttpURLConnection doesn't ask for a connection upgrade - 101 Upgrade

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v2]

2022-09-12 Thread Jaikiran Pai
On Mon, 12 Sep 2022 07:36:48 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8170305? >> >> The commit in this PR changes the internal implementation of >> `HttpURLConnection` to ig

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v3]

2022-09-12 Thread Jaikiran Pai
ting is in progress with this change. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision: Add a log message when ignorning 1xx responses - Changes: - all: https://git.openjdk.org/jdk/pull/10229/files - new: https://

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v4]

2022-09-12 Thread Jaikiran Pai
ting is in progress with this change. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision: fix test server to avoid hang in test - Changes: - all: https://git.openjdk.org/jdk/pull/10229/files - new: https://git.openj

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v3]

2022-09-12 Thread Jaikiran Pai
On Mon, 12 Sep 2022 07:45:44 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8170305? >> >> The commit in this PR changes the internal implementation of >> `HttpURLConnection` to ig

Re: RFR: 8288717: Add a means to close idle connections in HTTP/2 connection pool

2022-09-12 Thread Jaikiran Pai
On Wed, 7 Sep 2022 17:51:47 GMT, Daniel Fuchs wrote: >> src/java.net.http/share/classes/jdk/internal/net/http/Http2Connection.java >> line 200: >> >>> 198: debug.log("HTTP connection idle for too long"); >>> 199: } >>> 200: HttpTimeoutException hte = new

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v4]

2022-09-12 Thread Jaikiran Pai
On Mon, 12 Sep 2022 09:41:09 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8170305? >> >> The commit in this PR changes the internal implementation of >> `HttpURLConnection` to ig

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v4]

2022-09-12 Thread Jaikiran Pai
On Mon, 12 Sep 2022 12:52:00 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix test server to avoid hang in test > > test/jdk/java/net/HttpURLConnection/Response1x

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v5]

2022-09-12 Thread Jaikiran Pai
ting is in progress with this change. Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision: verify ProtocolException in the test - Changes: - all: https://git.openjdk.org/jdk/pull/10229/files - new: https://git.openj

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v4]

2022-09-12 Thread Jaikiran Pai
On Mon, 12 Sep 2022 13:04:12 GMT, Daniel Fuchs wrote: >> I initially thought about that, but since the API javadoc doesn't >> specifically talk about this sub-type of `IOException`, I decided it's >> perhaps better not to start expecting it. However, if it's OK for the test >> to rely on this

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v5]

2022-09-12 Thread Jaikiran Pai
On Mon, 12 Sep 2022 13:26:45 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8170305? >> >> The commit in this PR changes the internal implementation of >> `HttpURLConnection` to ig

Integrated: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages

2022-09-12 Thread Jaikiran Pai
On Fri, 9 Sep 2022 11:21:51 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which proposes to fix > https://bugs.openjdk.org/browse/JDK-8170305? > > The commit in this PR changes the internal implementation of > `HttpURLConnection` to ignore interim in

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v5]

2022-09-13 Thread Jaikiran Pai
On Mon, 12 Sep 2022 13:26:45 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8170305? >> >> The commit in this PR changes the internal implementation of >> `HttpURLConnection` to ig

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v9]

2022-09-14 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request incrementally with one additional commit since

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v8]

2022-09-14 Thread Jaikiran Pai
On Fri, 9 Sep 2022 12:51:07 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8292044? >> >> The linked JBS issue notes two parts to fixing this. Part one is to >> (internall

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v9]

2022-09-14 Thread Jaikiran Pai
On Wed, 14 Sep 2022 13:57:34 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8292044? >> >> The linked JBS issue notes two parts to fixing this. Part one is to >> (internall

Re: RFR: 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages [v5]

2022-09-17 Thread Jaikiran Pai
On Sat, 17 Sep 2022 10:53:31 GMT, Julian Reschke wrote: > Tested over at https://github.com/greenbytes/java-http-1xx-tests and found to > be working; thanks! > Thank you Julian for running those tests. Glad to hear it works now. > > OpenJDK backports however are decided/managed by different te

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v10]

2022-09-18 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request incrementally with two additional commits since the last rev

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v11]

2022-09-18 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request incrementally with two additional commits since the last revision:

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v12]

2022-09-19 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request incrementally with one additional commit since the l

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v13]

2022-09-19 Thread Jaikiran Pai
> A new test class has been introduced to reproduce the issue and test the fix. > The test tests both HTTP/1.1 and HTTP2. > > tier1, tier2 and tier3 testing is in progress. Jaikiran Pai has updated the pull request with a new target base due to a merge or a rebase. The increme

Re: RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v13]

2022-09-22 Thread Jaikiran Pai
On Tue, 20 Sep 2022 05:38:49 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix >> https://bugs.openjdk.org/browse/JDK-8292044? >> >> The linked JBS issue notes two parts to fixing this. Part one is to >> (internall

  1   2   3   4   5   6   7   8   9   10   >