RFR: 8298498: sun/net/www/http/KeepAliveCache/B8291637.java fails with "Server exception terminating: java.net.SocketException: Socket closed"
Jaikiran Pai
jpai at openjdk.org
Wed Dec 14 06:38:48 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.
Marked as reviewed by jpai (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/11647
More information about the net-dev
mailing list