Closed malliaridis closed 3 months ago
The function NioParams#setWriteByteBufferSize(int writeByteBufferSize) does not check the bounces of the passed argument writeByteBufferSize, but the readbyteBufferSize instead.
NioParams#setWriteByteBufferSize(int writeByteBufferSize)
writeByteBufferSize
readbyteBufferSize
NioParams
setWriteByteBufferSize(-1)
The bounces of the argument writebyteBufferSize are checked / An IllegalArgumentException is thrown for negative writeByteBufferSizes.
writebyteBufferSize
IllegalArgumentException
It looks like a copy-paste mistake from NioParams.setReadByteBufferSize(int readByteBufferSize).
NioParams.setReadByteBufferSize(int readByteBufferSize)
Fixed, thanks!
Describe the bug
The function
NioParams#setWriteByteBufferSize(int writeByteBufferSize)
does not check the bounces of the passed argumentwriteByteBufferSize
, but thereadbyteBufferSize
instead.Reproduction steps
NioParams
setWriteByteBufferSize(-1)
Expected behavior
The bounces of the argument
writebyteBufferSize
are checked / AnIllegalArgumentException
is thrown for negativewriteByteBufferSize
s.Additional context
It looks like a copy-paste mistake from
NioParams.setReadByteBufferSize(int readByteBufferSize)
.