AbstractNioByteChannel - AdaptiveRecvByteBufAllocator interaction

9 views
Skip to first unread message

Nat

unread,
Nov 8, 2017, 9:48:59 AM11/8/17
to Netty discussions
AdaptiveRecvByteBufAllocator seems to only adjust its buffer size when readComplete() is called. However, readComplete() is not called until it ran out of the data to read. Therefore, the buffer size will not be adjusted until it ran out of the data to read. I find that this logic is a little twisted. The buffer size should keep increasing until it could read the entire set of data in one batch (or reach the maximum buffer size limit), isn't it? Currently, the logic seems to rely on continueReading() logic to read at least 16 messages before stopping to ensure that the buffer size will be eventually increased. 
Reply all
Reply to author
Forward
0 new messages