Skip to content

Commit

Permalink
Apply WRITE_BUFFER_WATER_MARK setting to child channels in BookieNett…
Browse files Browse the repository at this point in the history
…yServer (#4337)

Signed-off-by: ZhangJian He <[email protected]>
  • Loading branch information
shoothzj authored May 4, 2024
1 parent eee9492 commit 9b4599b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ private void listenOn(InetSocketAddress address, BookieSocketAddress bookieAddre
bootstrap.childOption(ChannelOption.RCVBUF_ALLOCATOR,
new AdaptiveRecvByteBufAllocator(conf.getRecvByteBufAllocatorSizeMin(),
conf.getRecvByteBufAllocatorSizeInitial(), conf.getRecvByteBufAllocatorSizeMax()));
bootstrap.option(ChannelOption.WRITE_BUFFER_WATER_MARK, new WriteBufferWaterMark(
bootstrap.childOption(ChannelOption.WRITE_BUFFER_WATER_MARK, new WriteBufferWaterMark(
conf.getServerWriteBufferLowWaterMark(), conf.getServerWriteBufferHighWaterMark()));

if (eventLoopGroup instanceof IOUringEventLoopGroup){
Expand Down

0 comments on commit 9b4599b

Please sign in to comment.