Re: RFR: 8326568: jdk/test/com/sun/net/httpserver/bugs/B6431193.java should use try-with-resource and try-finally [v2]

2024-04-04 Thread Jaikiran Pai
On Tue, 2 Apr 2024 11:55:12 GMT, Darragh Clarke wrote: >> Currently this test occasionally doesn't cleanup between runs, sometimes not >> stopping the server or leaving Streams open >> >> Changes: >> - Use try-with-resources to ensure streams close. >> - Use try-finally to make sure the server

RFR: 8329662: Add a test to verify the behaviour of the default HEAD() method on HttpRequest.Builder

2024-04-04 Thread Jaikiran Pai
Can I please get a review of this test-only change which updates an existing test case to verify the behaviour of `HttpRequest.Builder.HEAD()` method? As noted in https://bugs.openjdk.org/browse/JDK-8329662, this test now verifies the default implementation specified for `HttpRequest.Builder.HEA

HttpServer performance issue / improvement

2024-04-04 Thread Robert Engels
When doing some testing on github.com/robaho/httpserver - which is a fork of the jdk http server, I discovered a significant performance issue.When an http connection is in ‘keep-alive’ - the default for http 1.1 - the headers are “flushed” here https://github.com/openjdk/jdk21/blob/890adb6410dab

HttpServer performance issue / improvement

2024-04-04 Thread Robert Engels
When doing some testing on github.com/robaho/httpserver - which is a fork of the jdk http server, I discovered a significant performance issue.When an http connection is in ‘keep-alive’ - the default for http 1.1 - the headers are “flushed” here https://github.com/openjdk/jdk21/blob/890adb6410dab4

Re: HttpServer performance issue / improvement

2024-04-04 Thread Daniel Jeliński
Hi Robert, Thanks for bringing this up! We are aware of the issue, it's tracked under https://bugs.openjdk.org/browse/JDK-6968351. If you have an idea for a proper fix that doesn't add too much complexity, please open a PR, and we'll be happy to help. Cheers, Daniel czw., 4 kwi 2024, 14:55 użytko

Re: RFR: 8329662: Add a test to verify the behaviour of the default HEAD() method on HttpRequest.Builder

2024-04-04 Thread Daniel Fuchs
On Thu, 4 Apr 2024 11:50:32 GMT, Jaikiran Pai wrote: > Can I please get a review of this test-only change which updates an existing > test case to verify the behaviour of `HttpRequest.Builder.HEAD()` method? > > As noted in https://bugs.openjdk.org/browse/JDK-8329662, this test now > verifies