Fixes #3969 - Adding comments from PR review

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2019-08-13 15:56:11 -05:00
parent 72c05bc8ba
commit 3940baea9c
1 changed files with 2 additions and 1 deletions

View File

@ -455,11 +455,12 @@ public class ForwardedRequestCustomizer implements Customizer
int size = 0;
MethodHandles.Lookup lookup = MethodHandles.lookup();
// Loop to grow capacity of ArrayTrie for all headers
while (true)
{
try
{
size += 128;
size += 128; // experimented good baseline size
_handles = new ArrayTrie<>(size);
if (updateForwardedHandle(lookup, getForwardedCipherSuiteHeader(), "handleCipherSuite"))