Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base` [v2]

2024-05-29 Thread Daniel Fuchs
On Tue, 28 May 2024 22:31:15 GMT, Jonathan Gibbons wrote: >> With the advent of JEP 467, `///` comments may be treated as documentation >> comments, and may be subject to the recently new `javac` warning about >> "dangling doc comments" in unexpected places. >> >> In keeping with the policy

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base` [v2]

2024-05-29 Thread Daniel Fuchs
On Tue, 28 May 2024 22:31:15 GMT, Jonathan Gibbons wrote: >> With the advent of JEP 467, `///` comments may be treated as documentation >> comments, and may be subject to the recently new `javac` warning about >> "dangling doc comments" in unexpected places. >> >> In keeping with the policy

Re: RFR: 8241550: [macOS] SSLSocketImpl/ReuseAddr.java failed due to "BindException: Address already in use" [v2]

2024-05-28 Thread Daniel Fuchs
On Tue, 28 May 2024 01:46:01 GMT, Bradford Wetmore wrote: > It's too late now, but I might have suggested a short sleep between attempts. @bradfordwetmore what would be the rationale for that? If the ReuseAddr::run method throws BindException, then retrying immediately should hopefully let us

Re: RFR: 8332623: Remove setTTL()/getTTL() methods from DatagramSocketImpl/MulticastSocket and MulticastSocket.send(DatagramPacket, byte)

2024-05-27 Thread Daniel Fuchs
On Sun, 26 May 2024 08:22:44 GMT, Lei Zhu wrote: > Remove setTTL()/getTTL() methods from DatagramSocketImpl/MulticastSocket and > MulticastSocket.send(DatagramPacket, byte) @Korov as @AlanBateman has indicated this PR is premature. These methods have just been marked deprecated for removal by

Re: RFR: 8331670: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal [v3]

2024-05-24 Thread Daniel Fuchs
On Tue, 21 May 2024 07:26:17 GMT, Alan Bateman wrote: >> This is the implementation changes for JEP 471. >> >> The methods in sun.misc.Unsafe for on-heap and off-heap access are >> deprecated for removal. This means a removal warning at compile time. No >> methods have been removed. A

Integrated: 8241550: [macOS] SSLSocketImpl/ReuseAddr.java failed due to "BindException: Address already in use"

2024-05-24 Thread Daniel Fuchs
On Thu, 23 May 2024 08:42:00 GMT, Daniel Fuchs wrote: > This is one of these tests that is not really fixable if any other process > that might open a socket runs concurrently with it on the same machine: > nothing can guarantee that if you open a socket, close it, then open a new

Re: RFR: 8241550: [macOS] SSLSocketImpl/ReuseAddr.java failed due to "BindException: Address already in use" [v2]

2024-05-23 Thread Daniel Fuchs
ee. It might work most of > the time, but success can’t be guaranteed. > > The only thing we can do in order to attempt to minimize noisy intermittent > failures is retry the whole test if a BindException is thrown. Daniel Fuchs has updated the pull request incrementally with one

RFR: 8241550: [macOS] SSLSocketImpl/ReuseAddr.java failed due to "BindException: Address already in use"

2024-05-23 Thread Daniel Fuchs
This is one of these tests that is not really fixable if any other process that might open a socket runs concurrently with it on the same machine: nothing can guarantee that if you open a socket, close it, then open a new socket on the same port, that port will still be free. It might work most

Re: RFR: 8329825: Clarify the value type for java.net.SocketOptions.SO_LINGER [v4]

2024-05-20 Thread Daniel Fuchs
On Fri, 17 May 2024 11:33:14 GMT, Jaikiran Pai wrote: >> Can I please get a review of this doc-only change which clarifies the value >> type for the `java.net.SocketOptions.SO_LINGER` option? > > Jaikiran Pai has updated the pull request incrementally with one additional > commit since the

Re: RFR: 8332181: Deprecate for removal the MulticastSocket.send(DatagramPacket, byte) and setTTL/getTTL methods on DatagramSocketImpl and MulticastSocket [v3]

2024-05-20 Thread Daniel Fuchs
On Mon, 20 May 2024 06:02:31 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to deprecate for >> removal 3 methods on `java.net.MulticastSocket`? This addresses >> https://bugs.openjdk.org/browse/JDK-8332181. >> >> As noted in that issue these methods have

Re: RFR: 8332071: Convert package.html files in `java.management.rmi` to package-info.java

2024-05-20 Thread Daniel Fuchs
On Sun, 19 May 2024 19:05:19 GMT, Nizar Benalla wrote: >> src/java.management.rmi/share/classes/javax/management/remote/rmi/package-info.java >> line 26: >> >>> 24: */ >>> 25: >>> 26: /** >> >> I assume you'll need to prepend each line with `*` too, which has the side >> effect of making

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v10]

2024-05-17 Thread Daniel Fuchs
On Fri, 17 May 2024 11:23:34 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX

Re: RFR: 8332181: Deprecate for removal the java.net.MulticastSocket.setTTL/getTTL and the 2-arg send methods [v2]

2024-05-17 Thread Daniel Fuchs
On Fri, 17 May 2024 11:50:15 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to deprecate for >> removal 3 methods on `java.net.MulticastSocket`? This addresses >> https://bugs.openjdk.org/browse/JDK-8332181. >> >> As noted in that issue these methods have

Re: RFR: 8332181: Deprecate for removal the java.net.MulticastSocket.setTTL/getTTL and the 2-arg send methods [v2]

2024-05-17 Thread Daniel Fuchs
On Fri, 17 May 2024 11:47:34 GMT, Jaikiran Pai wrote: >> src/java.base/share/classes/java/net/NetMulticastSocket.java line 655: >> >>> 653: @Deprecated >>> 654: @Override >>> 655: @SuppressWarnings("removal") >> >> Instead of adding `@SuppressWarning("removal")` here (and at other

Re: RFR: 8332181: Deprecate for removal the java.net.MulticastSocket.setTTL/getTTL and the 2-arg send methods

2024-05-17 Thread Daniel Fuchs
On Wed, 15 May 2024 04:20:09 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which proposes to deprecate for > removal 3 methods on `java.net.MulticastSocket`? This addresses > https://bugs.openjdk.org/browse/JDK-8332181. > > As noted in that issue these methods have been

Re: jmx-dev RFR: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation [v3]

2024-05-17 Thread Daniel Fuchs
On Thu, 16 May 2024 20:17:18 GMT, Kevin Walls wrote: >> Running JConsole from a previous JDK, and attaching to jdk-23 (after >> [JDK-832](https://bugs.openjdk.org/browse/JDK-832): Remove the Java >> Management Extension (JMX) Subject Delegation feature), the MBean tab is >> blank. >>

Re: RFR: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation [v3]

2024-05-17 Thread Daniel Fuchs
On Thu, 16 May 2024 20:17:18 GMT, Kevin Walls wrote: >> Running JConsole from a previous JDK, and attaching to jdk-23 (after >> [JDK-832](https://bugs.openjdk.org/browse/JDK-832): Remove the Java >> Management Extension (JMX) Subject Delegation feature), the MBean tab is >> blank. >>

Re: RFR: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation

2024-05-16 Thread Daniel Fuchs
On Thu, 16 May 2024 10:37:36 GMT, Kevin Walls wrote: >> This shows that when SubjectDelegation was not used, a null-filled array of >> the same length as the two other arrays was expected before (in previous >> versions of the JDK where SubjectDelegation was supported, but in the case >>

Re: jmx-dev RFR: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation

2024-05-16 Thread Daniel Fuchs
On Thu, 16 May 2024 10:37:36 GMT, Kevin Walls wrote: >> This shows that when SubjectDelegation was not used, a null-filled array of >> the same length as the two other arrays was expected before (in previous >> versions of the JDK where SubjectDelegation was supported, but in the case >>

Re: jmx-dev RFR: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation

2024-05-16 Thread Daniel Fuchs
On Thu, 16 May 2024 10:16:58 GMT, Kevin Walls wrote: >> Well my thinking was this: the fact that the jconsole tab was blank shows >> that the array may being passed. The previous code verified that all three >> arrays had the same length - so it would have failed if the array had a >> length

Re: RFR: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation

2024-05-16 Thread Daniel Fuchs
On Thu, 16 May 2024 10:16:58 GMT, Kevin Walls wrote: >> Well my thinking was this: the fact that the jconsole tab was blank shows >> that the array may being passed. The previous code verified that all three >> arrays had the same length - so it would have failed if the array had a >> length

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-05-16 Thread Daniel Fuchs
On Tue, 7 May 2024 10:08:12 GMT, Aleksei Efimov wrote: >> The parsing code and the test changes look good to me with a couple of minor >> suggestions. > >> @AlekseiEfimov @jaikiran @Michael-Mc-Mahon Could you please take a look and >> review the [CSR

Re: jmx-dev RFR: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation

2024-05-16 Thread Daniel Fuchs
On Wed, 15 May 2024 20:02:26 GMT, Kevin Walls wrote: >> src/java.management.rmi/share/classes/javax/management/remote/rmi/RMIConnectionImpl.java >> line 984: >> >>> 982: } >>> 983: if (names.length != filters.length) { >>> 984: final String msg = "The lengths of

Re: RFR: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation

2024-05-16 Thread Daniel Fuchs
On Wed, 15 May 2024 20:02:26 GMT, Kevin Walls wrote: >> src/java.management.rmi/share/classes/javax/management/remote/rmi/RMIConnectionImpl.java >> line 984: >> >>> 982: } >>> 983: if (names.length != filters.length) { >>> 984: final String msg = "The lengths of

Re: jmx-dev RFR: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation

2024-05-15 Thread Daniel Fuchs
On Wed, 15 May 2024 16:59:59 GMT, Kevin Walls wrote: > Running JConsole from a previous JDK, and attaching to jdk-23 (after > [JDK-832](https://bugs.openjdk.org/browse/JDK-832): Remove the Java > Management Extension (JMX) Subject Delegation feature), the MBean tab is > blank. > > In

Re: RFR: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation

2024-05-15 Thread Daniel Fuchs
On Wed, 15 May 2024 16:59:59 GMT, Kevin Walls wrote: > Running JConsole from a previous JDK, and attaching to jdk-23 (after > [JDK-832](https://bugs.openjdk.org/browse/JDK-832): Remove the Java > Management Extension (JMX) Subject Delegation feature), the MBean tab is > blank. > > In

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v8]

2024-05-15 Thread Daniel Fuchs
On Mon, 6 May 2024 18:36:24 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX

Re: RFR: 8330814: Cleanups for KeepAliveCache tests [v7]

2024-05-15 Thread Daniel Fuchs
On Wed, 15 May 2024 08:21:36 GMT, Christoph Langer wrote: >> Christoph Langer 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 11 additional >>

Re: RFR: 8330814: Cleanups for KeepAliveCache tests [v7]

2024-05-15 Thread Daniel Fuchs
On Tue, 7 May 2024 08:43:09 GMT, Christoph Langer wrote: >> While working in that area I found some potential for cleanup of a few tests. >> >> Most notably: >> >> B5045306.java: >> - does not need to run in othervm >> - the executor service that it uses should be shut down eventually to free

Re: RFR: 8331987: Enhance stacktrace clarity for CompletableFuture CancellationException [v2]

2024-05-15 Thread Daniel Fuchs
On Mon, 13 May 2024 23:59:17 GMT, Viktor Klang wrote: >> This change adds wrapping of the CancellationException produced by >> CompletableFuture::get() and CompletableFuture::join() to add more >> diagnostic information and align better with FutureTask. >> >> Running the sample code from the

New Draft JEP: Support HTTP/3 in the HttpClient

2024-05-14 Thread Daniel Fuchs
Hi, With HTTP/3 having reached the state of Proposed Standard, we propose to update the HttpClient provided by the java.net.http module [1] to additionally support the HTTP/3 protocol. HTTP/3 is an evolution of HTTP/2 based on the Quic transport, which uses components from TLSv1.3 to be secure

Re: RFR: 8332086: Remove the usage of ServiceLoader in j.u.r.RandomGeneratorFactory

2024-05-14 Thread Daniel Fuchs
On Mon, 13 May 2024 17:12:33 GMT, Raffaello Giulietti wrote: >> Not sure if that's an issue - but if you wanted/needed to delay the loading >> of those random generator classes that will not be used until something >> actually wants to use them, you could consider using a `Supplier> extends

Re: RFR: 8332086: Remove the usage of ServiceLoader in j.u.r.RandomGeneratorFactory

2024-05-13 Thread Daniel Fuchs
On Mon, 13 May 2024 13:21:23 GMT, Raffaello Giulietti wrote: >> A followup PR is fine. I think once this PR which addresses the API aspects >> (like removal of ServiceLoader and then updates to the create() method >> javadoc) is integrated, then the subsequent PR can just be all internal >>

Re: RFR: 8331671: Implement JEP 472: Prepare to Restrict the Use of JNI [v3]

2024-05-13 Thread Daniel Fuchs
On Mon, 13 May 2024 11:47:38 GMT, Maurizio Cimadamore wrote: >> This PR implements [JEP 472](https://openjdk.org/jeps/472), by restricting >> the use of JNI in the following ways: >> >> * `System::load` and `System::loadLibrary` are now restricted methods >> * `Runtime::load` and

Re: RFR: 8331671: Implement JEP 472: Prepare to Restrict the Use of JNI [v3]

2024-05-13 Thread Daniel Fuchs
On Mon, 13 May 2024 11:47:38 GMT, Maurizio Cimadamore wrote: >> This PR implements [JEP 472](https://openjdk.org/jeps/472), by restricting >> the use of JNI in the following ways: >> >> * `System::load` and `System::loadLibrary` are now restricted methods >> * `Runtime::load` and

Re: RFR: 8331671: Implement JEP 472: Prepare to Restrict the Use of JNI [v3]

2024-05-13 Thread Daniel Fuchs
On Mon, 13 May 2024 11:47:38 GMT, Maurizio Cimadamore wrote: >> This PR implements [JEP 472](https://openjdk.org/jeps/472), by restricting >> the use of JNI in the following ways: >> >> * `System::load` and `System::loadLibrary` are now restricted methods >> * `Runtime::load` and

Re: RFR: 8331671: Implement JEP 472: Prepare to Restrict the Use of JNI [v3]

2024-05-13 Thread Daniel Fuchs
On Mon, 13 May 2024 11:47:38 GMT, Maurizio Cimadamore wrote: >> This PR implements [JEP 472](https://openjdk.org/jeps/472), by restricting >> the use of JNI in the following ways: >> >> * `System::load` and `System::loadLibrary` are now restricted methods >> * `Runtime::load` and

Re: jmx-dev RFR: 8331671: Implement JEP 472: Prepare to Restrict the Use of JNI [v3]

2024-05-13 Thread Daniel Fuchs
On Mon, 13 May 2024 11:47:38 GMT, Maurizio Cimadamore wrote: >> This PR implements [JEP 472](https://openjdk.org/jeps/472), by restricting >> the use of JNI in the following ways: >> >> * `System::load` and `System::loadLibrary` are now restricted methods >> * `Runtime::load` and

Re: RFR: 8331671: Implement JEP 472: Prepare to Restrict the Use of JNI [v3]

2024-05-13 Thread Daniel Fuchs
On Mon, 13 May 2024 11:47:38 GMT, Maurizio Cimadamore wrote: >> This PR implements [JEP 472](https://openjdk.org/jeps/472), by restricting >> the use of JNI in the following ways: >> >> * `System::load` and `System::loadLibrary` are now restricted methods >> * `Runtime::load` and

Re: RFR: 8331671: Implement JEP 472: Prepare to Restrict the Use of JNI [v3]

2024-05-13 Thread Daniel Fuchs
On Mon, 13 May 2024 11:47:38 GMT, Maurizio Cimadamore wrote: >> This PR implements [JEP 472](https://openjdk.org/jeps/472), by restricting >> the use of JNI in the following ways: >> >> * `System::load` and `System::loadLibrary` are now restricted methods >> * `Runtime::load` and

Re: RFR: 8331671: Implement JEP 472: Prepare to Restrict the Use of JNI [v3]

2024-05-13 Thread Daniel Fuchs
On Mon, 13 May 2024 11:47:38 GMT, Maurizio Cimadamore wrote: >> This PR implements [JEP 472](https://openjdk.org/jeps/472), by restricting >> the use of JNI in the following ways: >> >> * `System::load` and `System::loadLibrary` are now restricted methods >> * `Runtime::load` and

Re: RFR: 8332020: jwebserver tool prints invalid URL in case of IPv6 address binding [v4]

2024-05-10 Thread Daniel Fuchs
On Fri, 10 May 2024 14:46:44 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to address >> https://bugs.openjdk.org/browse/JDK-8332020? >> >> `jwebserver` when it is launched prints a URL where the server is >> accessible. When launched using an IPv6 bind

Re: RFR: 8144100: Incorrect case-sensitive equality in com.sun.net.httpserver.BasicAuthenticator [v3]

2024-05-10 Thread Daniel Fuchs
On Fri, 10 May 2024 13:58:58 GMT, Nizar Benalla wrote: >> Passes Tier 1-3 >> Please review this change that aims to fix a bug when parsing the client's >> request. >> >> RFC 9110 states >> >>> 11. HTTP Authentication 11.1. Authentication Scheme >> HTTP provides a general framework for access

Re: RFR: 8332020: jwebserver tool prints invalid URL in case of IPv6 address binding [v3]

2024-05-10 Thread Daniel Fuchs
ull request incrementally with one additional > commit since the last revision: > > Use -p 0 in the test > > Co-authored-by: Daniel Fuchs <67001856+df...@users.noreply.github.com> LGTM - Marked as reviewed by dfuchs (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/19173#pullrequestreview-2050100758

Re: RFR: 8332020: jwebserver tool prints invalid URL in case of IPv6 address binding [v2]

2024-05-10 Thread Daniel Fuchs
On Fri, 10 May 2024 10:31:44 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to address >> https://bugs.openjdk.org/browse/JDK-8332020? >> >> `jwebserver` when it is launched prints a URL where the server is >> accessible. When launched using an IPv6 bind

Re: RFR: 8332020: jwebserver tool prints invalid URL in case of IPv6 address binding

2024-05-10 Thread Daniel Fuchs
On Fri, 10 May 2024 10:05:07 GMT, Jaikiran Pai wrote: >> src/jdk.httpserver/share/classes/sun/net/httpserver/simpleserver/SimpleFileServerImpl.java >> line 185: >> >>> 183: >>> writer.println(ResourceBundleHelper.getMessage("msg.start.anylocal", root, >>> port, url)); >>>

Re: RFR: 8332006: Test com/sun/net/httpserver/TcpNoDelayNotRequired.java run timeout with -Xcomp [v2]

2024-05-10 Thread Daniel Fuchs
On Fri, 10 May 2024 01:22:17 GMT, SendaoYan wrote: >> Hi, >> The testcase TcpNoDelayNotRequired.java run timeout with -Xcomp jvm >> options. With -Xcomp jvm options, the jvm consumes a lot of time to compile >> the java code, but the timeout value is set to 5 second. >> >> I think it has

Re: RFR: 8332020: jwebserver tool prints invalid URL in case of IPv6 address binding

2024-05-10 Thread Daniel Fuchs
On Fri, 10 May 2024 09:21:15 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which proposes to address > https://bugs.openjdk.org/browse/JDK-8332020? > > `jwebserver` when it is launched prints a URL where the server is accessible. > When launched using an IPv6 bind

Re: RFR: 8144100: Incorrect case-sensitive equality in com.sun.net.httpserver.BasicAuthenticator [v2]

2024-05-10 Thread Daniel Fuchs
On Thu, 9 May 2024 12:49:09 GMT, Nizar Benalla wrote: >> Passes Tier 1-3 >> Please review this change that aims to fix a bug when parsing the client's >> request. >> >> RFC 9110 states >> >>> 11. HTTP Authentication 11.1. Authentication Scheme >> HTTP provides a general framework for access

Re: RFR: 8332015: Add `@since` tags to jdk.httpserver [v2]

2024-05-10 Thread Daniel Fuchs
On Fri, 10 May 2024 03:53:12 GMT, Nizar Benalla wrote: >> Please review this simple change, aiming to fix current uses of `@since` in >> the source code >> -The constructor >> BasicAuthenticator(java.lang.String,java.nio.charset.Charset) needs an >> `@since 14` instead of 9. >>

Re: RFR: 8331876: JFR: Move file read and write events to java.base [v3]

2024-05-09 Thread Daniel Fuchs
On Thu, 9 May 2024 11:19:14 GMT, Erik Gahlin wrote: >> Hi, >> >> Could I have a review of a change that moves the jdk.FileRead and >> jdk.FileWrite events to java.base to remove the use of the ASM >> instrumentation. >> >> Testing: jdk/jdk/jfr >> >> Thanks >> Erik > > Erik Gahlin has

Re: RFR: 8144100: Incorrect case-sensitive equality in com.sun.net.httpserver.BasicAuthenticator

2024-05-09 Thread Daniel Fuchs
On Wed, 8 May 2024 04:23:47 GMT, Nizar Benalla wrote: > Passes Tier 1-3 > Please review this change that aims to fix a bug when parsing the client's > request. > > RFC 9110 states > >> 11. HTTP Authentication 11.1. Authentication Scheme > HTTP provides a general framework for access control

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-05-09 Thread Daniel Fuchs
On Thu, 18 Apr 2024 13:29:21 GMT, Michael McMahon wrote: >>> which lists the methods that parse as decimal only, and the new method >>> which parses using the "loose" syntax. >> >> That might not be practical: the only method that supports non decimal form >> is the new `ofBSDLiteral`. But

Re: RFR: 8278353: Provide Duke as default favicon in Simple Web Server

2024-05-07 Thread Daniel Fuchs
On Tue, 30 Apr 2024 11:23:01 GMT, Christian Stein wrote: > Please pre-review this draft pull request adding a default for response for > the `/favicon.ico` path to the Simple Web Server introduced by [JEP > 408](https://openjdk.org/jeps/408). The image in this PR is a copy of >

Re: RFR: 8330814: Cleanups for KeepAliveCache tests [v7]

2024-05-07 Thread Daniel Fuchs
On Tue, 7 May 2024 08:43:09 GMT, Christoph Langer wrote: >> While working in that area I found some potential for cleanup of a few tests. >> >> Most notably: >> >> B5045306.java: >> - does not need to run in othervm >> - the executor service that it uses should be shut down eventually to free

Re: RFR: 8331334: com/sun/net/httpserver/HttpsParametersClientAuthTest.java fails in testServerNeedClientAuth(false) [v2]

2024-05-07 Thread Daniel Fuchs
On Mon, 6 May 2024 05:36:10 GMT, Jaikiran Pai wrote: >> Can I get a review of this test-only fix which addresses the intermittent >> failrues in `com/sun/net/httpserver/HttpsParametersClientAuthTest.java` on >> Windows? >> >> As noted in https://bugs.openjdk.org/browse/JDK-8331334, the test

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length [v27]

2024-05-07 Thread Daniel Fuchs
On Thu, 25 Apr 2024 17:01:52 GMT, robert engels wrote: >> fix bug JDK-B6968351 by avoiding flush after response headers > > robert engels has updated the pull request incrementally with one additional > commit since the last revision: > > update copyright date Tests were green. Please

Re: RFR: 8331334: com/sun/net/httpserver/HttpsParametersClientAuthTest.java fails in testServerNeedClientAuth(false) [v2]

2024-05-07 Thread Daniel Fuchs
On Mon, 6 May 2024 05:36:10 GMT, Jaikiran Pai wrote: >> Can I get a review of this test-only fix which addresses the intermittent >> failrues in `com/sun/net/httpserver/HttpsParametersClientAuthTest.java` on >> Windows? >> >> As noted in https://bugs.openjdk.org/browse/JDK-8331334, the test

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length [v23]

2024-05-02 Thread Daniel Fuchs
On Fri, 26 Apr 2024 13:24:08 GMT, Michael McMahon wrote: >>> I created a PR for the related proposed api changes #18955 >> >> I don't think I have the ability to create issues, so I can't create one for >> the api changes. > >> > I created a PR for the related proposed api changes #18955 >>

Re: RFR: 8331514: Tests should not use the "Classpath" exception form of the legal header

2024-05-02 Thread Daniel Fuchs
On Thu, 2 May 2024 04:29:26 GMT, Jaikiran Pai wrote: > Can I please get a review of this copyright text only change which removes > the "Classpath" exception from the > `test/jdk/java/lang/ProcessBuilder/JspawnhelperWarnings.java` test file and > thus addresses

Re: RFR: 8331513: Tests should not use the "Classpath" exception form of the legal header

2024-05-02 Thread Daniel Fuchs
On Thu, 2 May 2024 04:26:25 GMT, Jaikiran Pai wrote: > Can I please get a review of this copyright text only change that removes the > "Classpath" exception from these test files and thus addresses > https://bugs.openjdk.org/browse/JDK-8331513? LGTM. - Marked as reviewed by

Re: RFR: 8331195: Improve com.sun.net.httpserver.HttpExchange usability [v3]

2024-05-01 Thread Daniel Fuchs
On Wed, 1 May 2024 13:26:39 GMT, robert engels wrote: > I might prefer `OS beginChunkedResponse()` and `OS beginFixedResponse()`. That's not a bad suggestion (whether startXxxx or beginXxxx). My gripe with `OS sendResponseHeadersX` is that the existing `void sendResponseHeaders` returns

Re: RFR: 8331195: Improve com.sun.net.httpserver.HttpExchange usability [v3]

2024-05-01 Thread Daniel Fuchs
On Wed, 1 May 2024 12:40:52 GMT, robert engels wrote: > OutputStream sendResponseHeadersChunked(int code); > OutputStream sendResponseHeadersFixed(int code,long length); I still think that these methods should either return `void` or be renamed, though I have been struggling to find a name

Re: RFR: 8331195: Improve com.sun.net.httpserver.HttpExchange usability [v3]

2024-04-30 Thread Daniel Fuchs
On Tue, 30 Apr 2024 15:55:05 GMT, robert engels wrote: >> src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpExchange.java >> line 237: >> >>> 235: */ >>> 236: public final OutputStream sendResponseHeadersChunked(int code) >>> throws IOException { >>> 237:

Re: RFR: 8331195: Improve com.sun.net.httpserver.HttpExchange usability [v3]

2024-04-30 Thread Daniel Fuchs
On Fri, 26 Apr 2024 15:37:13 GMT, robert engels wrote: >> improve the HttpExchange api with documented constants and convenience >> methods to avoid common bugs > > robert engels has updated the pull request incrementally with one additional > commit since the last revision: > > Update >

Re: RFR: 8331195: Improve com.sun.net.httpserver.HttpExchange usability [v3]

2024-04-30 Thread Daniel Fuchs
On Fri, 26 Apr 2024 14:54:30 GMT, Michael McMahon wrote: >> robert engels has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update >> src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpExchange.java >> >> Co-authored-by:

Re: RFR: 8331195: Improve com.sun.net.httpserver.HttpExchange usability [v3]

2024-04-30 Thread Daniel Fuchs
On Fri, 26 Apr 2024 15:37:13 GMT, robert engels wrote: >> improve the HttpExchange api with documented constants and convenience >> methods to avoid common bugs > > robert engels has updated the pull request incrementally with one additional > commit since the last revision: > > Update >

Re: RFR: 8330814: Cleanups for KeepAliveCache tests [v5]

2024-04-30 Thread Daniel Fuchs
On Sat, 27 Apr 2024 13:15:37 GMT, Christoph Langer wrote: >> While working in that area I found some potential for cleanup of a few tests. >> >> Most notably: >> >> B5045306.java: >> - does not need to run in othervm >> - the executor service that it uses should be shut down eventually to free

Re: RFR: 8330814: Cleanups for KeepAliveCache tests [v2]

2024-04-30 Thread Daniel Fuchs
On Thu, 25 Apr 2024 08:04:16 GMT, Christoph Langer wrote: >> test/jdk/sun/net/www/http/KeepAliveCache/B5045306.java line 154: >> >>> 152: >>> 153: // if Keep-Alive-SocketCleaner consumes more than >>> 50% of cpu then we >>> 154: // can assume a

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length [v21]

2024-04-25 Thread Daniel Fuchs
On Thu, 25 Apr 2024 15:24:12 GMT, robert engels wrote: >> fix bug JDK-B6968351 by avoiding flush after response headers > > robert engels has updated the pull request incrementally with one additional > commit since the last revision: > > add https testing

Re: RFR: 8331063: Some HttpClient tests don't report leaks

2024-04-24 Thread Daniel Fuchs
On Wed, 24 Apr 2024 16:21:39 GMT, Daniel Jeliński wrote: > This patch fixes leak reporting in `ForbiddenHeadTest.java` and > `ProxySelectorTest.java`. > > The tests were checking for leaks, but the detected problems were not > reported to the test harness. Additionally,

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length [v14]

2024-04-22 Thread Daniel Fuchs
On Mon, 22 Apr 2024 15:23:01 GMT, robert engels wrote: >> Just to be clear - I agree with Daniel that the line 851 should be removed. >> I was just speculating about the possible backward compatibility issues of >> *not* flushing the stream after writing the headers. We saw some test >>

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length [v14]

2024-04-22 Thread Daniel Fuchs
On Mon, 22 Apr 2024 14:40:02 GMT, robert engels wrote: >> I can see that a bad handler could call `sendResponse(500, 0);` instead of >> `sendResponse(500, -1)`, and forget to close the body output stream or the >> exchange. A client might just not read the body if it receives 500. Before >>

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length [v14]

2024-04-22 Thread Daniel Fuchs
On Mon, 22 Apr 2024 13:05:31 GMT, robert engels wrote: >> also, I reviewed the semantics of the buffered output stream. It is fully >> synchronized, so flushing here is fine and cannot corrupt the data to the >> client. But still, I don't think it is needed as it doesn't really solve >>

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length [v6]

2024-04-19 Thread Daniel Fuchs
On Fri, 19 Apr 2024 18:49:33 GMT, robert engels wrote: >> src/jdk.httpserver/share/classes/sun/net/httpserver/ChunkedOutputStream.java >> line 142: >> >>> 140: try { >>> 141: /* write any pending chunk data */ >>> 142: writeChunk(); >> >> Isn't there a risk

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length [v6]

2024-04-19 Thread Daniel Fuchs
On Fri, 19 Apr 2024 18:43:18 GMT, robert engels wrote: >> fix bug JDK-B6968351 by avoiding flush after response headers > > robert engels has updated the pull request incrementally with one additional > commit since the last revision: > > fix chunked response for small packets

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length [v2]

2024-04-19 Thread Daniel Fuchs
On Fri, 19 Apr 2024 14:39:08 GMT, robert engels wrote: >> test/jdk/com/sun/net/httpserver/bugs/B6968351.java line 45: >> >>> 43: import java.util.logging.*; >>> 44: >>> 45: public class B6968351 { >> >> You could use a more revealing name here; the B*bug numer* aren't very useful > > This was

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length [v2]

2024-04-19 Thread Daniel Fuchs
On Fri, 19 Apr 2024 14:37:27 GMT, robert engels wrote: >> Before doing that, you might want to check the HTTPS case. As far as I can >> tell, we don't do any buffering when SSL is in use. > > I think it was safer for future enhancements the way it was done. The other > advantage of using a

Re: RFR: 8330178: Clean up non-standard use of /** comments in `java.base`

2024-04-19 Thread Daniel Fuchs
On Thu, 18 Apr 2024 20:44:00 GMT, Jonathan Gibbons wrote: > Please review a set of updates to clean up use of `/**` comments in the > vicinity of declarations. > > There are various categories of update: > > * "Box comments" beginning with `/**` > * Misplaced doc comments before package or

Re: RFR: 8330178: Clean up non-standard use of /** comments in `java.base`

2024-04-19 Thread Daniel Fuchs
On Thu, 18 Apr 2024 20:44:00 GMT, Jonathan Gibbons wrote: > Please review a set of updates to clean up use of `/**` comments in the > vicinity of declarations. > > There are various categories of update: > > * "Box comments" beginning with `/**` > * Misplaced doc comments before package or

Re: RFR: 8330178: Clean up non-standard use of /** comments in `java.base`

2024-04-19 Thread Daniel Fuchs
On Thu, 18 Apr 2024 20:44:00 GMT, Jonathan Gibbons wrote: > Please review a set of updates to clean up use of `/**` comments in the > vicinity of declarations. > > There are various categories of update: > > * "Box comments" beginning with `/**` > * Misplaced doc comments before package or

Re: RFR: 8330178: Clean up non-standard use of /** comments in `java.base`

2024-04-19 Thread Daniel Fuchs
On Thu, 18 Apr 2024 20:44:00 GMT, Jonathan Gibbons wrote: > Please review a set of updates to clean up use of `/**` comments in the > vicinity of declarations. > > There are various categories of update: > > * "Box comments" beginning with `/**` > * Misplaced doc comments before package or

Re: RFR: 8330178: Clean up non-standard use of /** comments in `java.base`

2024-04-19 Thread Daniel Fuchs
On Thu, 18 Apr 2024 20:44:00 GMT, Jonathan Gibbons wrote: > Please review a set of updates to clean up use of `/**` comments in the > vicinity of declarations. > > There are various categories of update: > > * "Box comments" beginning with `/**` > * Misplaced doc comments before package or

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length

2024-04-19 Thread Daniel Fuchs
On Fri, 19 Apr 2024 09:03:36 GMT, Daniel Fuchs wrote: >> fix bug JDK-B6968351 by avoiding flush after response headers > > src/jdk.httpserver/share/classes/sun/net/httpserver/ExchangeImpl.java line > 210: > >> 208: this.rcode = rCode; >> 209:

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length

2024-04-19 Thread Daniel Fuchs
On Fri, 19 Apr 2024 08:53:13 GMT, Daniel Jeliński wrote: >> fix bug JDK-B6968351 by avoiding flush after response headers > > test/jdk/com/sun/net/httpserver/bugs/B6968351.java line 75: > >> 73: long time = System.currentTimeMillis()-start; >> 74: System.out.println("time

Re: RFR: 6968351: httpserver clashes with delayed TCP ACKs for low Content-Length

2024-04-19 Thread Daniel Fuchs
On Sat, 6 Apr 2024 23:35:48 GMT, robert engels wrote: > fix bug JDK-B6968351 by avoiding flush after response headers Hi Robert, thanks for working on this issue. src/jdk.httpserver/share/classes/sun/net/httpserver/ExchangeImpl.java line 210: > 208: this.rcode = rCode; > 209:

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-04-18 Thread Daniel Fuchs
On Thu, 18 Apr 2024 13:29:21 GMT, Michael McMahon wrote: > I think we only need to talk about the methods in InetAddress. Though it > could be phrased as `ofPosixLiteral` supports decimal, hex and octal. All > other parsing is decimal only. Yes. that latter formulation might be better.

Re: RFR: 8329138: Convert JFR FileForceEvent to static mirror event [v5]

2024-04-18 Thread Daniel Fuchs
On Wed, 17 Apr 2024 01:34:07 GMT, Tim Prinzing wrote: >> Currently the JFR event FileForceEvent is generated by instrumenting the >> sun.nio.ch.FileChannelImpl class. This needs to be changed to use the newer >> mirror events with static methods. >> >> Added the event at

Re: RFR: 8330572: jdk.internal.net.http.HttpConnection calls an expensive checkOpen() when returning a HTTP/1.1 connection to the pool

2024-04-18 Thread Daniel Fuchs
On Thu, 18 Apr 2024 13:47:04 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which proposes to fix the issue > reported in https://bugs.openjdk.org/browse/JDK-8330572? > > As noted in that issue, the internal method `checkOpen()` should only be > called when picking a

Re: RFR: 8330523: Reduce runtime and improve efficiency of KeepAliveTest [v2]

2024-04-18 Thread Daniel Fuchs
On Thu, 18 Apr 2024 12:40:27 GMT, Christoph Langer wrote: >> The test case sun/net/www/http/HttpClient/KeepAliveTest.java could be more >> effective. >> >> It tests a matrix of HTTP client settings and server behavior, resulting in >> 160 individual test scenarios. Each is tested in an own

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-04-18 Thread Daniel Fuchs
On Thu, 18 Apr 2024 10:24:30 GMT, Michael McMahon wrote: > which lists the methods that parse as decimal only, and the new method which > parses using the "loose" syntax. That might not be practical: the only method that supports non decimal form is the new `ofBSDLiteral`. But any other

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-17 Thread Daniel Fuchs
addresses >> in "loose" syntax, compatible with `inet_addr` POSIX api. The implementation >> is based on `.isBsdParsableV4()` method added along with JDK-8277608 [4]. >> The changes in the original algorithm are as follows: >> >> - `IPAddressUtil#parseB...

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-17 Thread Daniel Fuchs
On Wed, 17 Apr 2024 14:26:35 GMT, Jaikiran Pai wrote: > The changes proposed in this PR introduce a new paragraph in the class level > documentation just before the line which states the dotted-quad string. So I > think it may not be clear enough whether dotted-quad string implies decimal >

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-17 Thread Daniel Fuchs
On Wed, 17 Apr 2024 14:02:05 GMT, Jaikiran Pai wrote: > Should we be setting any expectations by specifying what > InetAddress.getHostAddress() will return for an Inet4Address constructed > using this new Inet4Address.ofPosixLiteral() method? In its current form I > believe it will continue

Re: RFR: Merge 33d7127

2024-04-17 Thread Daniel Fuchs
On Wed, 17 Apr 2024 01:09:30 GMT, Jaikiran Pai wrote: > This brings in the CPU24_04 changes. This looks reasonable. I haven't been involved in all the fixes here - but I haven't spotted anything obviously wrong. The changes to the ConnectionPool look right. If some of the fixes had conflicts

Re: RFR: Merge 33d7127

2024-04-17 Thread Daniel Fuchs
On Wed, 17 Apr 2024 01:09:30 GMT, Jaikiran Pai wrote: > This brings in the CPU24_04 changes. This looks reasonable. I haven't been involved in all the fixes here - but I haven't spotted anything obviously wrong. The changes to the ConnectionPool look right. If some of the fixes had conflicts

Re: RFR: 8329138: Convert JFR FileForceEvent to static mirror event [v2]

2024-04-16 Thread Daniel Fuchs
On Mon, 15 Apr 2024 20:41:10 GMT, Tim Prinzing wrote: >> test/jdk/jdk/jfr/event/io/TestAsynchronousFileChannelEvents.java line 50: >> >>> 48: >>> 49: public static void main(String[] args) throws Throwable { >>> 50: File blah = File.createTempFile("blah", null); >> >> Can you

Re: RFR: 8310994: Add JFR event for selection operations [v3]

2024-04-11 Thread Daniel Fuchs
On Thu, 11 Apr 2024 16:08:31 GMT, Alan Bateman wrote: >> We should probably find a way to not emit the event if n == 0 and the >> operation was interrupted by `Selector.wakeUp`. Since we have another issue >> logged to emit a spin event, I wonder if we should only commit the event >> here if

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v4]

2024-04-11 Thread Daniel Fuchs
On Thu, 11 Apr 2024 12:58:07 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v2]

2024-04-11 Thread Daniel Fuchs
On Wed, 10 Apr 2024 15:30:52 GMT, Sergey Chernyshev wrote: >> src/java.base/share/classes/java/net/Inet4Address.java line 103: >> >>> 101: * octal and hexadecimal address segments. Please refer to >>> 102: * https://www.ietf.org/rfc/rfc6943.html#section-3.1.1;> >>> RFC >>> 103: * 6943:

  1   2   3   4   5   6   7   8   9   10   >