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

maxBytesPerRead channel configuration #3885

Closed
wants to merge 1 commit into from

Commits on Aug 6, 2015

  1. maxBytesPerRead channel configuration

    Motiviation:
    The current read loops don't fascilitate reading a maximum amount of bytes. This capability is useful to have more fine grain control over how much data is injested.
    
    Modifications:
    - Add a setMaxBytesPerRead(int) and getMaxBytesPerRead() to ChannelConfig
    - Add a setMaxBytesPerIndividualRead(int) and getMaxBytesPerIndividualRead to ChannelConfig
    - Add methods to RecvByteBufAllocator so that a pluggable scheme can be used to control the behavior of the read loop.
    - Modify read loop for all transport types to respect the new RecvByteBufAllocator API
    
    Result:
    The ability to control how many bytes are read for each read operation/loop, and a more extensible read loop.
    Scottmitch committed Aug 6, 2015
    Configuration menu
    Copy the full SHA
    f473dcb View commit details
    Browse the repository at this point in the history