Skip to content

Commit a03e518

Browse files
committed
[UNDERTOW-2382] CVE-2024-3653 Create system properties for configuring learning push handler default values for max-entries and max-age
Signed-off-by: Flavia Rainone <[email protected]>
1 parent 6b8e79c commit a03e518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/io/undertow/server/handlers/LearningPushHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
public class LearningPushHandler implements HttpHandler {
4747

4848
private static final String SESSION_ATTRIBUTE = "io.undertow.PUSHED_RESOURCES";
49-
private static final int DEFAULT_MAX_CACHE_ENTRIES = 200;
50-
private static final int DEFAULT_MAX_CACHE_AGE = LRUCache.MAX_AGE_NO_EXPIRY;
49+
private static final int DEFAULT_MAX_CACHE_ENTRIES = Integer.getInteger("io.undertow.handlers.learning-push.default-max-entries", 200);
50+
private static final int DEFAULT_MAX_CACHE_AGE = Integer.getInteger("io.undertow.handlers.learning-push.default-max-age", LRUCache.MAX_AGE_NO_EXPIRY);
5151

5252
private final LRUCache<String, LRUCache<String, PushedRequest>> cache;
5353

0 commit comments

Comments
 (0)