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
7f2ddb2162
commit
2e509f7bb7
@ -957,7 +957,7 @@ public class SslHandler extends ByteToMessageDecoder implements ChannelOutboundH
|
||||
ctx.read();
|
||||
}
|
||||
|
||||
ctx.fireChannelReadComplete();
|
||||
super.channelReadComplete(ctx);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user