首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
1.8.2 编译后,启动抱错
1.8.2 编译后启动抱错 编译参数:./configure --enable-async-mysql --enable-async-httpclient 抱错信息: ```shell [2016-03-15 16:01:19 *22012.1] ERROR swoole_fcntl_set_block(:668): fcntl(-733065664, GETFL) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 *22012.1] ERROR swoole_fcntl_set_block(:688): fcntl(-733065664, SETFL, opts) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swoole_fcntl_set_block(:668): fcntl(32759, GETFL) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swoole_fcntl_set_block(:688): fcntl(32759, SETFL, opts) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swReactorEpoll_add(:140): add events[fd=32759#0, type=5, events=1] failed. Error: Bad file descriptor[9]. ``` 源码位置: ```c void swoole_fcntl_set_block(int sock, int nonblock) { int opts, ret; do { opts = fcntl(sock, F_GETFL); } while (opts < 0 && errno == EINTR); if (opts < 0) { swSysError("fcntl(%d, GETFL) failed.", sock); } if (nonblock) { opts = opts | O_NONBLOCK; } else { opts = opts & ~O_NONBLOCK; } do { ret = fcntl(sock, F_SETFL, opts); } while (ret < 0 && errno == EINTR); if (ret < 0) { swSysError("fcntl(%d, SETFL, opts) failed.", sock); } } ```
发布于7年前 · 0 次浏览 · 来自
提问
彼岸
1.8.2 编译后启动抱错 编译参数:./configure --enable-async-mysql --enable-async-httpclient 抱错信息: ```shell [2016-03-15 16:01:19 *22012.1] ERROR swoole_fcntl_set_block(:668): fcntl(-733065664, GETFL) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 *22012.1] ERROR swoole_fcntl_set_block(:688): fcntl(-733065664, SETFL, opts) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swoole_fcntl_set_block(:668): fcntl(32759, GETFL) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swoole_fcntl_set_block(:688): fcntl(32759, SETFL, opts) failed. Error: Bad file descriptor[9]. [2016-03-15 16:01:19 @22011.0] ERROR swReactorEpoll_add(:140): add events[fd=32759#0, type=5, events=1] failed. Error: Bad file descriptor[9]. ``` 源码位置: ```c void swoole_fcntl_set_block(int sock, int nonblock) { int opts, ret; do { opts = fcntl(sock, F_GETFL); } while (opts < 0 && errno == EINTR); if (opts < 0) { swSysError("fcntl(%d, GETFL) failed.", sock); } if (nonblock) { opts = opts | O_NONBLOCK; } else { opts = opts & ~O_NONBLOCK; } do { ret = fcntl(sock, F_SETFL, opts); } while (ret < 0 && errno == EINTR); if (ret < 0) { swSysError("fcntl(%d, SETFL, opts) failed.", sock); } } ```
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
2017-07-19
S
Shiki
1.8.2版本如果设置reactor_num超过CPU核数会出现此问题,新的1.8.3版本已经修复。
赞
0
回复
微信公众号
热门内容
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。