src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http2ClientImpl.java
branchhttp-client-branch
changeset 55940 8e09e6396acd
parent 55799 c71f52f48d97
child 55973 4d9b002587db
equal deleted inserted replaced
55937:c94a558a70ed 55940:8e09e6396acd
   127                             "waking up dependents with created connection");
   127                             "waking up dependents with created connection");
   128                     synchronized (opening) {
   128                     synchronized (opening) {
   129                         Set<CompletableFuture<Http2Connection>> waiters = waiting.remove(key);
   129                         Set<CompletableFuture<Http2Connection>> waiters = waiting.remove(key);
   130                         debug.log(Level.DEBUG, "Opening completed: %s", key);
   130                         debug.log(Level.DEBUG, "Opening completed: %s", key);
   131                         opening.remove(key);
   131                         opening.remove(key);
       
   132                         if (t == null && conn != null)
       
   133                             putConnection(conn);
   132                         final Throwable cause = Utils.getCompletionCause(t);
   134                         final Throwable cause = Utils.getCompletionCause(t);
   133                         if (waiters == null) {
   135                         if (waiters == null) {
   134                             debug.log(Level.DEBUG, "no dependent to wake up");
   136                             debug.log(Level.DEBUG, "no dependent to wake up");
   135                             return;
   137                             return;
   136                         } else if (cause instanceof Http2Connection.ALPNException) {
   138                         } else if (cause instanceof Http2Connection.ALPNException) {