-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GroupChannelOptionForLinux初始化时EventLoopGroup需增加动态判断 #375
Labels
enhancement;功能增强
Function enhancement;功能增强
Comments
好的。 |
iohao
added a commit
that referenced
this issue
Sep 28, 2024
default value Lines 146 to 166 in 7b970dc
set GroupChannelOption private ExternalServer createExternalServer(int port) {
var builder = DefaultExternalServer.newBuilder(port);
// ExternalCore setting
var setting = builder.setting();
// set GroupChannelOption
setting.setGroupChannelOption(new GroupChannelOptionForOther());
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你的问题 | 使用场景
在安卓手机中运行 ioGame 报错" no netty_transport_native_epoll in java.library.path", 研究后发现轻量级或嵌入式 Linux 发行版可能没有完整的 I/O 多路复用支持,如 epoll,同时代码写死EpollEventLoopGroup判断导致报错。
修复建议:
修改GroupChannelOptionForLinux类增加动态判断,系统不支持epoll时切换成nio,可以参考com.alipay.remoting.util.NettyEventLoopUtil代码实现
预期值
安卓手机中运行没有报错
实际值
在安卓手机中运行iogame报错" no netty_transport_native_epoll in java.library.path"
复现步骤
安卓手机中运行 ioGame 报如下错误
版本
ioGame17分支代码
The text was updated successfully, but these errors were encountered: