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:
parent
2b3e0e675a
commit
cdd2e1c8c1
@ -914,7 +914,7 @@ public class SslHandler extends ByteToMessageDecoder {
|
||||
ctx.read();
|
||||
}
|
||||
|
||||
ctx.fireChannelReadComplete();
|
||||
super.channelReadComplete(ctx);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user