RFR: 8293562: blocked threads with KeepAliveCache.get [v4]

Daniel Jeliński djelinski at openjdk.org
Wed Sep 28 17:31:46 UTC 2022


On Wed, 28 Sep 2022 16:15:42 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

>> Daniel Jeliński has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Close connections in finally block
>>  - Fix copyright year
>
> src/java.base/share/classes/sun/net/www/http/KeepAliveCache.java line 125:
> 
>> 123:     @SuppressWarnings("removal")
>> 124:     public void put(final URL url, Object obj, HttpClient http) {
>> 125:         HttpClient oldClient = null;
> 
> Could you put a comment in there explaining what oldClient is exactly? Eg that it is a client that ends up being closed, either from the cache to make way for the newest entry or if the current client needs to be closed.

Added. Let me know if that's what you had in mind.

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

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


More information about the net-dev mailing list