Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better guards again re-entrance in ByteToMessageDecoder #370

Merged
merged 1 commit into from
May 8, 2018

Commits on May 8, 2018

  1. Add better guards again re-entrance in ByteToMessageDecoder

    Motivation:
    
    When the ByteToMessageDecoder re-entranced in its decode(...) / decodeLast(...) methods it could be possible that the ordering of processing and so the seen bytes are mixed.
    
    Modifications:
    
    - Refresh the buffer (and take a slice)  on each loop iteration and update the cumulationBuffers indicies.
    
    Result:
    
    More robust code.
    normanmaurer committed May 8, 2018
    Configuration menu
    Copy the full SHA
    35783b7 View commit details
    Browse the repository at this point in the history