fix remove handler cause ByteToMessageDecoder out disorder#9670
fix remove handler cause ByteToMessageDecoder out disorder#9670normanmaurer merged 5 commits intonetty:4.1from
Conversation
|
Can one of the admins verify this patch? |
codec/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java
Outdated
Show resolved
Hide resolved
codec/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java
Outdated
Show resolved
Hide resolved
|
@switchYello ping me once you addressed the comments |
|
@normanmaurer yes |
|
@johnou PTAL |
|
@netty-bot test this please |
|
@normanmaurer what about #4635 ? or do you see this as another edge case? |
|
@switchYello please fix the check style errors: |
|
@netty-bot test this please |
|
the output must be byte,i conversion to byte fail,I don't understand if i not conversion ,my idea will prompt me and now I don't know how to do it. remove type conversion ? |
|
oh i konw ,because my languagel level is 1.8 ... ,netty need 1.6 |
|
@netty-bot test this please |
|
@johnou sorry I don't get what you are asking for... Can you elaborate ? |
normanmaurer
left a comment
There was a problem hiding this comment.
one last nit then ready to go... great catch
codec/src/test/java/io/netty/handler/codec/ByteToMessageDecoderTest.java
Show resolved
Hide resolved
|
@normanmaurer yes i add assertFalse(buffer5.isReadable()) ,ensure not produce more then expected |
|
@netty-bot test this please |
|
@switchYello thanks a lot! |
Motivation: Data flowing in from the decoder flows out in sequence,Whether decoder removed or not. Modification: fire data in out and clear out when hander removed before call method handlerRemoved(ctx) Result: Fixes #9668 .

Motivation:
Data flowing in from the decoder flows out in sequence,Whether decoder removed or not.
Modification:
fire data in out and clear out when hander removed
before call method handlerRemoved(ctx)
Result:
Fixes #9668 .