RFR: 8298498: sun/net/www/http/KeepAliveCache/B8291637.java fails with "Server exception terminating: java.net.SocketException: Socket closed"
Daniel Fuchs
dfuchs at openjdk.org
Tue Dec 13 13:50:57 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.
Looks reasonable to me.
-------------
Marked as reviewed by dfuchs (Reviewer).
PR: https://git.openjdk.org/jdk/pull/11647
More information about the net-dev
mailing list