RFR: 8298498: sun/net/www/http/KeepAliveCache/B8291637.java fails with "Server exception terminating: java.net.SocketException: Socket closed"

Daniel Jeliński djelinski at openjdk.org
Thu Dec 15 06:56:11 UTC 2022


On Tue, 13 Dec 2022 10:34:16 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

> This patch attempts to address a rare test failure where read from a socket succeeds immediately after sending the response.
> 
> The existing `readRequest` method did not verify if it received the entire request. The method `readOneRequest` (copied from other tests) makes sure that we read the trailing double newline before proceeding.

Thanks for reviewing!

-------------

PR: https://git.openjdk.org/jdk/pull/11647


More information about the net-dev mailing list