The QuicEndpoint keeps a collection of active stateless reset tokens mapped to connections. Updates to the map are not fully synchronized, and sometimes tokens were added after a connection was closed and unregistered from the endpoint.
The code adds two new assertions (in QuicEndpoint and in PeerConnIdManager) that caused occasional test failures. All java/net/httpclient tests are stable. ------------- Commit messages: - Update copyright - Add assertion - Freeze stateless reset tokens before removing / remapping - Add bug ID to test - Assert that all tokens are removed when connection list is empty Changes: https://git.openjdk.org/jdk/pull/30534/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30534&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8377181 Stats: 40 lines in 6 files changed: 28 ins; 5 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/30534.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30534/head:pull/30534 PR: https://git.openjdk.org/jdk/pull/30534
