src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http2ClientImpl.java
equal
deleted
inserted
replaced
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) { |