File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
spring-grpc-core/src/main/java/org/springframework/grpc/server Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2323
2424import io .grpc .TlsServerCredentials .ClientAuth ;
2525import io .grpc .netty .NettyServerBuilder ;
26- import io .netty .channel .epoll .EpollEventLoopGroup ;
26+ import io .netty .channel .MultiThreadIoEventLoopGroup ;
27+ import io .netty .channel .epoll .EpollIoHandler ;
2728import io .netty .channel .epoll .EpollServerDomainSocketChannel ;
2829import io .netty .channel .unix .DomainSocketAddress ;
2930
@@ -49,8 +50,8 @@ protected NettyServerBuilder newServerBuilder() {
4950 String path = address .substring (5 );
5051 return NettyServerBuilder .forAddress (new DomainSocketAddress (path ))
5152 .channelType (EpollServerDomainSocketChannel .class )
52- .bossEventLoopGroup (new EpollEventLoopGroup ( 1 ))
53- .workerEventLoopGroup (new EpollEventLoopGroup ( ));
53+ .bossEventLoopGroup (new MultiThreadIoEventLoopGroup ( 1 , EpollIoHandler . newFactory () ))
54+ .workerEventLoopGroup (new MultiThreadIoEventLoopGroup ( EpollIoHandler . newFactory () ));
5455 }
5556 return super .newServerBuilder ();
5657 }
You can’t perform that action at this time.
0 commit comments