Add netty epoll

This commit is contained in:
Andrea Cavalli 2024-09-27 00:08:59 +02:00
parent b6d788d00a
commit df98b40884

View File

@ -74,7 +74,7 @@ public class GrpcServer extends Server {
try { try {
elg = new EpollEventLoopGroup(Runtime.getRuntime().availableProcessors() * 2); elg = new EpollEventLoopGroup(Runtime.getRuntime().availableProcessors() * 2);
channelType = EpollServerDomainSocketChannel.class; channelType = EpollServerDomainSocketChannel.class;
} catch (UnsatisfiedLinkError ex) { } catch (Throwable ex) {
LOG.warn("Can't load Epoll event loop group, the server will be slower", ex); LOG.warn("Can't load Epoll event loop group, the server will be slower", ex);
elg = new NioEventLoopGroup(Runtime.getRuntime().availableProcessors() * 2); elg = new NioEventLoopGroup(Runtime.getRuntime().availableProcessors() * 2);
channelType = NioServerSocketChannel.class; channelType = NioServerSocketChannel.class;