src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http2ClientImpl.java
branchhttp-client-branch
changeset 55764 34d7cc00f87a
parent 55763 634d8e14c172
child 55792 0936888d5a4a
equal deleted inserted replaced
55763:634d8e14c172 55764:34d7cc00f87a
    96      * In latter case, when the Http2Connection is connected, putConnection() must
    96      * In latter case, when the Http2Connection is connected, putConnection() must
    97      * be called to store it.
    97      * be called to store it.
    98      */
    98      */
    99     CompletableFuture<Http2Connection> getConnectionFor(HttpRequestImpl req) {
    99     CompletableFuture<Http2Connection> getConnectionFor(HttpRequestImpl req) {
   100         URI uri = req.uri();
   100         URI uri = req.uri();
   101         InetSocketAddress proxy = req.proxy(client);
   101         InetSocketAddress proxy = req.proxy();
   102         String key = Http2Connection.keyFor(uri, proxy);
   102         String key = Http2Connection.keyFor(uri, proxy);
   103 
   103 
   104         synchronized (opening) {
   104         synchronized (opening) {
   105             Http2Connection connection = connections.get(key);
   105             Http2Connection connection = connections.get(key);
   106             if (connection != null) { // fast path if connection already exists
   106             if (connection != null) { // fast path if connection already exists