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.
Currently, the only requirement for parameter
maxDecodeEmitis that it is greater than0. This can be problematic for thedecodeBufferedAPI (See: #209 ) which will throw exception ifmaxBufSizeis less than or equal tomaxDecodeEmitif the implementation chooses something wildly inappropriate such asInt.MAX_VALUE.Thinking a maximum value of
256 - 1would suffice, but need to think about it more.