diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-05-19 12:36:54 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-05-19 12:36:54 +0200 |
commit | c8c01bf79f34625ee85e2d2645416c6882915fed (patch) | |
tree | 0ce86e3f4eb5b4487a692e8ce1e03ade3ace5bce /container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SimpleConcurrentIdentityHashMap.java | |
parent | 4ff157fb3b644ae367b8739ee7a522e87e1707df (diff) |
Ensure SSLEngine instances are purged on connection closed
Diffstat (limited to 'container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SimpleConcurrentIdentityHashMap.java')
-rw-r--r-- | container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SimpleConcurrentIdentityHashMap.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SimpleConcurrentIdentityHashMap.java b/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SimpleConcurrentIdentityHashMap.java index b2bfa2a5dda..59d606c640f 100644 --- a/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SimpleConcurrentIdentityHashMap.java +++ b/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SimpleConcurrentIdentityHashMap.java @@ -20,7 +20,7 @@ class SimpleConcurrentIdentityHashMap<K, V> { Optional<V> remove(K key) { return Optional.ofNullable(wrappedMap.remove(identityKey(key))); } - void put(K key, V value) { wrappedMap.put(identityKey(key), value); } + Optional<V> put(K key, V value) { return Optional.ofNullable(wrappedMap.put(identityKey(key), value)); } V computeIfAbsent(K key, Supplier<V> supplier) { return wrappedMap.computeIfAbsent(identityKey(key), ignored -> supplier.get()); |