File tree 2 files changed +11
-5
lines changed
src/main/java/com/amazonaws/encryptionsdk/kms
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 1.3.4
4
+
5
+ ### Minor Changes
6
+
7
+ * Removed the KMS client cache, which could result in a memory leak when
8
+ decrypting certain malformed ciphertexts. This may reduce performance slightly
9
+ in some scenarios.
10
+
3
11
## 1.3.3
4
12
5
13
### Minor Changes
Original file line number Diff line number Diff line change @@ -259,12 +259,10 @@ private RegionalClientSupplier clientFactory() {
259
259
AWSKMSClientBuilder builder = templateBuilder_ != null ? cloneClientBuilder (templateBuilder_ )
260
260
: AWSKMSClientBuilder .standard ();
261
261
262
- ConcurrentHashMap <String , AWSKMS > clientCache = new ConcurrentHashMap <>();
263
-
264
- return region -> clientCache .computeIfAbsent (region , region2 -> {
262
+ return region -> {
265
263
// Clone yet again as we're going to change the region field.
266
- return cloneClientBuilder (builder ).withRegion (region2 ).build ();
267
- }) ;
264
+ return cloneClientBuilder (builder ).withRegion (region ).build ();
265
+ };
268
266
}
269
267
}
270
268
You can’t perform that action at this time.
0 commit comments