Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ByteToMessageDecoder.handlerRemoved(...) should only call fireChannel…
…ReadComplete() if fireChannelRead(...) was called before (#9211) Motivation: At the moment ByteToMessageDecoder always calls fireChannelReadComplete() when the handler is removed from the pipeline and the cumulation buffer is not null. We should only call it when we also call fireChannelRead(...), which only happens if the cumulation buffer is not null and readable. Modifications: Only call fireChannelReadComplete() if fireChannelRead(...) is called before during removal of the handler. Result: More correct semantics
- Loading branch information