Fix unbounded expansion of cumulative buffer in SslHandler

Related: #3567

Motivation:

SslHandler.channelReadComplete() forgets to call
super.channelReadComplete(), which discards read bytes from the
cumulative buffer.  As a result, the cumulative buffer can expand its
capacity unboundedly.

Modifications:

Call super.channelReadComplete() instead of calling
ctx.fireChannelReadComplete()

Result:

Fixes #3567
This commit is contained in:
Trustin Lee 2015-04-02 14:54:29 +09:00
parent 2b3e0e675a
commit cdd2e1c8c1

View File

@ -914,7 +914,7 @@ public class SslHandler extends ByteToMessageDecoder {
ctx.read(); ctx.read();
} }
ctx.fireChannelReadComplete(); super.channelReadComplete(ctx);
} }
/** /**