Integrated: 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:59:08 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.

This pull request has now been integrated.

Changeset: 3ae71872
Author:    Daniel Jeliński <djelinski at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3ae718725a72cc2758331e932130d846cfba64e4
Stats:     20 lines in 1 file changed: 13 ins; 0 del; 7 mod

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

Reviewed-by: dfuchs, jpai

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

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


More information about the net-dev mailing list