# HG changeset patch # User michaelm # Date 1512121202 0 # Node ID 8e09e6396acde9aaf52dbe9e1f5da5df157c6c69 # Parent c94a558a70ed4dbcdd9b21edd563c8ca4e0932ce http-client-branch: SSL h2 connections not being cached or re-used diff -r c94a558a70ed -r 8e09e6396acd src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http2ClientImpl.java --- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http2ClientImpl.java Thu Nov 30 17:49:29 2017 +0000 +++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http2ClientImpl.java Fri Dec 01 09:40:02 2017 +0000 @@ -129,6 +129,8 @@ Set> waiters = waiting.remove(key); debug.log(Level.DEBUG, "Opening completed: %s", key); opening.remove(key); + if (t == null && conn != null) + putConnection(conn); final Throwable cause = Utils.getCompletionCause(t); if (waiters == null) { debug.log(Level.DEBUG, "no dependent to wake up");