Fixes #6072 - jetty server high CPU when client send data length > 17408.
Updates after review. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
00d379c94b
commit
294b2ba02b
|
@ -729,13 +729,15 @@ public class SslConnection extends AbstractConnection implements Connection.Upgr
|
|||
return filled = -1;
|
||||
|
||||
case BUFFER_UNDERFLOW:
|
||||
if (netFilled > 0)
|
||||
if (BufferUtil.space(_encryptedInput) == 0)
|
||||
{
|
||||
if (BufferUtil.space(_encryptedInput) > 0)
|
||||
continue; // try filling some more
|
||||
BufferUtil.clear(_encryptedInput);
|
||||
throw new SSLHandshakeException("Encrypted buffer max length exceeded");
|
||||
}
|
||||
|
||||
if (netFilled > 0)
|
||||
continue; // try filling some more
|
||||
|
||||
_underflown = true;
|
||||
if (netFilled < 0 && _sslEngine.getUseClientMode())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue