Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typo in KQueueChannelConfig (netty#12537)
Motivation: KQueueChannelConfigTest.testRawOption() fails on MacOS due to the buffer for the RawUnixChannelOption being over-allocated when retrieving the option value. Since the limit is not explicitly set (the buffer is just flipped), the limit of the buffer will be based on its size, causing the test to fail. Modification: Changes the buffer allocation for getOption of RawUnixChannelOption in KQueueChannelConfig to be based on the length of the option instead of the level. The use of level is likely a typo. The corresponding code in EpollChannelConfig allocates the buffer based on length rather than level. Result: One less test failure when building on MacOS (Intel) with JDK 1.8.
- Loading branch information