Skip to content

EncoderDecoder.Config.maxDecodeEmit should have a maximum limit #211

@05nelsonm

Description

@05nelsonm

Currently, the only requirement for parameter maxDecodeEmit is that it is greater than 0. This can be problematic for the decodeBuffered API (See: #209 ) which will throw exception if maxBufSize is less than or equal to maxDecodeEmit if the implementation chooses something wildly inappropriate such as Int.MAX_VALUE.

Thinking a maximum value of 256 - 1 would suffice, but need to think about it more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions