Integrated: 8286962: java/net/httpclient/ServerCloseTest.java failed once with ConnectException

Conor Cleary ccleary at openjdk.java.net
Wed Jun 15 15:45:00 UTC 2022


On Tue, 14 Jun 2022 15:20:28 GMT, Conor Cleary <ccleary at openjdk.org> wrote:

> **Issue**
> A failure in this test was observed whereby an unexpected connection from a client that was not created by the test caused the test to unsucessfully complete. 
> 
> **Solution**
> When a connection is accepted by the ServerSocket, some verification of the Request URI and of the Request Path is conducted. If the client connection is found to be invalid or external to the test, the connection is closed. The ServerSocket will continue to accept new connections until the correct parameters are met. Once a valid connection is accepted, the test behaves exactly as it previously did.

This pull request has now been integrated.

Changeset: 13d4ddc3
Author:    Conor Cleary <ccleary at openjdk.org>
Committer: Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/13d4ddc35b1a64e2d882c7dcd554b5aee2720c53
Stats:     20 lines in 1 file changed: 12 ins; 2 del; 6 mod

8286962: java/net/httpclient/ServerCloseTest.java failed once with ConnectException

Reviewed-by: dfuchs, jpai

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

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


More information about the net-dev mailing list