-
Notifications
You must be signed in to change notification settings - Fork 569
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
Windows下使用,创建TcpServer时抛出了异常"addEvent | select() can not watch fd bigger than 1024" #228
Comments
看改动确实向误删了判断 windows 的条件,手动加回来试试? #ifndef _WIN32
if (fd >= FD_SETSIZE) {
WarnL << "select() can not watch fd bigger than " << FD_SETSIZE;
return -1;
}
#endif |
将addevent中windows平台判断条件添加回来了,测试看来没有问题,可以正常使用了 |
PioLing
added a commit
to PioLing/ZLToolKit
that referenced
this issue
May 17, 2024
Merged
PioLing
added a commit
that referenced
this issue
May 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git commit: 26d54bb
日志记录:
2024-05-16 11:28:29.071 W [tstj.exe] [15636-12384] EventPoller.cpp:144 addEvent | select() can not watch fd bigger than 1024
启动时,使用单例,在构造函数中构建了一个TcpServer
时抛出异常,定位到EventPoller.cpp文件里
这种情况该如何解决呢?在 git commit: 43004be 之前代码是正常工作的。
谢谢
The text was updated successfully, but these errors were encountered: