From df98b408845e1a068f1be3b833e16d630b5538b9 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Fri, 27 Sep 2024 00:08:59 +0200 Subject: [PATCH] Add netty epoll --- .../java/it/cavallium/rockserver/core/server/GrpcServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/cavallium/rockserver/core/server/GrpcServer.java b/src/main/java/it/cavallium/rockserver/core/server/GrpcServer.java index 49a42be..aaf422b 100644 --- a/src/main/java/it/cavallium/rockserver/core/server/GrpcServer.java +++ b/src/main/java/it/cavallium/rockserver/core/server/GrpcServer.java @@ -74,7 +74,7 @@ public class GrpcServer extends Server { try { elg = new EpollEventLoopGroup(Runtime.getRuntime().availableProcessors() * 2); channelType = EpollServerDomainSocketChannel.class; - } catch (UnsatisfiedLinkError ex) { + } catch (Throwable ex) { LOG.warn("Can't load Epoll event loop group, the server will be slower", ex); elg = new NioEventLoopGroup(Runtime.getRuntime().availableProcessors() * 2); channelType = NioServerSocketChannel.class;