Skip to content

Commit 1a6b6be

Browse files
authored
Merge pull request #1811 from mugdha273/UNDERTOW-2490
[UNDERTOW-2490]-Create a default constant for UndertowOptions.HTTP_HEADERS_CACHE_SIZE
2 parents 528b2fc + 5a94526 commit 1a6b6be

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/src/main/java/io/undertow/UndertowOptions.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,15 @@ public class UndertowOptions {
382382
*/
383383
public static final Option<Integer> MAX_CACHED_HEADER_SIZE = Option.simple(UndertowOptions.class, "MAX_CACHED_HEADER_SIZE", Integer.class);
384384

385+
/**
386+
* Default value of {@link #HTTP_HEADERS_CACHE_SIZE} option.
387+
*/
385388
public static final int DEFAULT_HTTP_HEADERS_CACHE_SIZE = 15;
386389

387390
/**
388-
* The maximum number of headers that are cached per connection. Defaults to 15. If this is set to zero the cache is disabled.
391+
* The maximum number of headers that are cached per connection. If this is set to zero the cache is disabled.
392+
* <p>
393+
* Defaults to {@link #DEFAULT_HTTP_HEADERS_CACHE_SIZE}
389394
*/
390395
public static final Option<Integer> HTTP_HEADERS_CACHE_SIZE = Option.simple(UndertowOptions.class, "HTTP_HEADERS_CACHE_SIZE", Integer.class);
391396

0 commit comments

Comments
 (0)