Closed egmkang closed 8 years ago
@egmkang, please refer to this first. Extra comments on your questions (in order):
ReferenceCountUtil.SafeRelease
in happy-path scenarios - it masks incorrect over-releasing and is really meant for exception-handling cases.@nayato thank you very much. i have read the article carefully. it have solved my No.2 and No.3 problems. about the first problem. the article said i have release the buffer. my question is Netty always Allocate A New Buffer, it won't reuse the buffer object? for example, when the buffer contains part of the whole message, i must cache the bytes of buffer netty allocated, and release the buffer, until i can decode one whole message.
@nayato i found out ByteToMessageDecoder has finished the feature. thank you again.
I'm using
DotNetty
writing codes to communicate with my c++ server. I read some blogs and realizedIByteBuffer
must berelease
. to confirm this and usage DotNetty in the right way, i have these questions: