From c8c01bf79f34625ee85e2d2645416c6882915fed Mon Sep 17 00:00:00 2001 From: Bjørn Christian Seime Date: Wed, 19 May 2021 12:36:54 +0200 Subject: Ensure SSLEngine instances are purged on connection closed --- .../yahoo/jdisc/http/server/jetty/SimpleConcurrentIdentityHashMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SimpleConcurrentIdentityHashMap.java') 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 { Optional remove(K key) { return Optional.ofNullable(wrappedMap.remove(identityKey(key))); } - void put(K key, V value) { wrappedMap.put(identityKey(key), value); } + Optional put(K key, V value) { return Optional.ofNullable(wrappedMap.put(identityKey(key), value)); } V computeIfAbsent(K key, Supplier supplier) { return wrappedMap.computeIfAbsent(identityKey(key), ignored -> supplier.get()); -- cgit v1.2.3