[jdk21u-dev] RFR: 8342075: HttpClient: improve HTTP/2 flow control checks [v3]

Andrew John Hughes andrew at openjdk.org
Fri Mar 14 22:33:54 UTC 2025


On Tue, 25 Feb 2025 20:22:35 GMT, Alexey Bakhtin <abakhtin at openjdk.org> wrote:

>> Please review the backport of JDK-8342075
>> 
>> Almost clean backport except for the import section of src/java.net.http/share/classes/jdk/internal/net/http/Http2Connection.java
>> 
>> Requires JDK-8317808 [1] as a prerequisite to fixing the hanging of the new tests.
>> 
>> Also, new tests require Http2TestExchange::getConnectionKey() method added by JDK-8335181 [2].
>> 
>> test/jdk/java/net/httpclient/lib/jdk/httpclient/test/lib/http2/Http2TestExchange.java, test/jdk/java/net/httpclient/lib/jdk/httpclient/test/lib/http2/Http2TestExchangeImpl.java and test/jdk/java/net/httpclient/lib/jdk/httpclient/test/lib/http2/Http2TestServerConnection.java test classes are updated to add  getConnectionKey() implementation
>> 
>> All jtreg tests for java.net.httpclient are passed
>> 
>> [1] - https://github.com/openjdk/jdk21u-dev/pull/1426
>> [2] - https://github.com/openjdk/jdk/commit/720b44648bcff997278af92746f942b2425298a5#diff-c18c2a070038409f25c08e13c174a95f33840e2deddcc29f6d8306de572a618b
>
> Alexey Bakhtin has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 10 additional commits since the last revision:
> 
>  - Merge master
>  - Add Http2TestExchange::getConnectionKey() from JDK-8335181
>  - Backport b0ac633b2d0076d64b463b2a6ce19abf6b12c50f
>  - Revert "Backport fc98998627443d6e73ac70661f47f48b30525712"
>    
>    This reverts commit 899abf76e7a381abdfbc30f08a6a5678c0a8065d.
>  - Revert "Backport 720b44648bcff997278af92746f942b2425298a5"
>    
>    This reverts commit a5b7bb4d432c868d598c35f54306e40747071ad7.
>  - Revert "Remove extra import"
>    
>    This reverts commit 480336754274ea62ab2e9b076dcec91f7d483c25.
>  - Backport 6273ab97dc1a0d3c1f51ba94694d9594dd7593d4
>  - Remove extra import
>  - Backport 720b44648bcff997278af92746f942b2425298a5
>  - Backport fc98998627443d6e73ac70661f47f48b30525712

Code backport looks good (and matches what I started doing myself with resolving the import).

With the test changes, was there a reason for abandoning #1416 & #1417 and including the test changes in this patch? It looks like they are both in 21.0.8-oracle

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

PR Review: https://git.openjdk.org/jdk21u-dev/pull/1428#pullrequestreview-2686981828


More information about the jdk-updates-dev mailing list