Integrated: 8300268 : ServerImpl allows too many idle connections when using sun.net.httpserver.maxIdleConnections

Darragh Clarke duke at openjdk.org
Thu Feb 9 12:30:55 UTC 2023


On Fri, 3 Feb 2023 17:58:28 GMT, Darragh Clarke <duke at openjdk.org> wrote:

> Currently there is a race condition that can allow for too many 'idleConnections' in `ServerImpl`
> 
> This PR adds a lock to make sure only one connection can be marked Idle at a time as well as a test that consistently failed before the change but which now passes.

This pull request has now been integrated.

Changeset: e4d1cff6
Author:    Darragh Clarke <Darragh.clarke at oracle.com>
Committer: Jaikiran Pai <jpai at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e4d1cff6597ac25d435fe16e0fc49d23f6e65df4
Stats:     215 lines in 3 files changed: 210 ins; 0 del; 5 mod

8300268: ServerImpl allows too many idle connections when using sun.net.httpserver.maxIdleConnections

Reviewed-by: dfuchs, vtewari, michaelm, jpai

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

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


More information about the net-dev mailing list