Skip to content

Invalid value check in NioParams.setWriteByteBufferSize #1309

Closed
@malliaridis

Description

@malliaridis

Describe the bug

The function NioParams#setWriteByteBufferSize(int writeByteBufferSize) does not check the bounces of the passed argument writeByteBufferSize, but the readbyteBufferSize instead.

Reproduction steps

  1. Create an instance of NioParams
  2. Call setWriteByteBufferSize(-1)

Expected behavior

The bounces of the argument writebyteBufferSize are checked / An IllegalArgumentException is thrown for negative writeByteBufferSizes.

Additional context

It looks like a copy-paste mistake from NioParams.setReadByteBufferSize(int readByteBufferSize).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions