Skip to content

Commit

Permalink
Merge branch 'series/0.4' into series/0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hamnis committed Apr 14, 2022
2 parents 6918042 + 61b08f9 commit 23e8ee9
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,13 @@ final class NettyServerBuilder[F[_]] private (
EventLoopHolder[IOUringServerSocketChannel](
new IOUringEventLoopGroup(1),
new IOUringEventLoopGroup(eventLoopThreads))
} else
if (Epoll.isAvailable) {
} else if (Epoll.isAvailable) {
logger.info("Using Epoll")
val acceptorEventLoopGroup = new EpollEventLoopGroup(1)
acceptorEventLoopGroup.setIoRatio(100)
val workerEventLoopGroup = new EpollEventLoopGroup(eventLoopThreads)
workerEventLoopGroup.setIoRatio(80)
EventLoopHolder[EpollServerSocketChannel](
acceptorEventLoopGroup,
workerEventLoopGroup)
EventLoopHolder[EpollServerSocketChannel](acceptorEventLoopGroup, workerEventLoopGroup)
} else if (KQueue.isAvailable) {
logger.info("Using KQueue")
EventLoopHolder[KQueueServerSocketChannel](
Expand Down

0 comments on commit 23e8ee9

Please sign in to comment.