RFR: 8292381: java/net/httpclient/SpecialHeadersTest.java fails with "ERROR: Shutting down connection: HTTP/2 client stopped"

Daniel Fuchs dfuchs at openjdk.org
Thu Aug 18 10:15:08 UTC 2022


On Thu, 18 Aug 2022 10:01:28 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

> I don't really understand why the test (originally) needed to create so many clients. Wouldn't it be easier and more maintainable to only create the minimum number of clients?

Yeah - maybe. But there are differences between a brand new client and 'used' client: one may go through the upgrade when using h2c where the other might not because it might already have a connection opened. These tests are what there are. They did help flush a number of race conditions over the time that we might not have seen if we had simpler tests.

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

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


More information about the net-dev mailing list