diff --git a/java11/src/main/java/feign/http2client/Http2Client.java b/java11/src/main/java/feign/http2client/Http2Client.java index f8c6d344e..8cafd025d 100644 --- a/java11/src/main/java/feign/http2client/Http2Client.java +++ b/java11/src/main/java/feign/http2client/Http2Client.java @@ -15,6 +15,7 @@ import java.io.ByteArrayInputStream; import java.io.IOException; +import java.lang.ref.SoftReference; import java.net.URI; import java.net.URISyntaxException; import java.net.http.HttpClient; @@ -39,6 +40,7 @@ import java.util.Set; import java.util.TreeSet; import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; import java.util.stream.Collectors; import feign.AsyncClient; @@ -54,6 +56,8 @@ public class Http2Client implements Client, AsyncClient { private final HttpClient client; + private final Map> clients = new ConcurrentHashMap<>(); + /** * Creates the new Http2Client using following defaults: *