首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
tcp client bug
### 问题描述 Swoole\Coroutine\Client在进入channel后重复使用时, errCode从0变成11, errMsg变成"Resource temporarily unavailable" ### Swoole版本,PHP版本,以及操作系统版本信息 swoole 4.x php 7.x ``` client json_encode结果变化 {"errCode":0,"errMsg":"","fd":16,"type":1,"setting":{"timeout":0.20000000000000001,"connect_timeout":0.10000000000000001,"write_timeout":0.20000000000000001,"read_timeout":0.69999999999999996,"open_length_check":true,"package_length_type":"V","package_length_offset":6,"package_body_offset":10,"socket_buffer_size":2097152,"open_tcp_nodelay":true},"connected":true} {"errCode":11,"errMsg":"Resource temporarily unavailable","fd":16,"type":1,"setting":{"timeout":0.20000000000000001,"connect_timeout":0.10000000000000001,"write_timeout":0.20000000000000001,"read_timeout":0.69999999999999996,"open_length_check":true,"package_length_type":"V","package_length_offset":6,"package_body_offset":10,"socket_buffer_size":2097152,"open_tcp_nodelay":true},"connected":true} ``` ``` tcpdump日志 15:58:22.582487 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [S], seq 349656547, win 29200, options [mss 1460,sackOK,TS val 26709261 ecr 0,nop,wscale 2], length 0 15:58:22.588123 IP 10.144.68.225.17706 > 10.252.234.67.36262: Flags [S.], seq 1698265523, ack 349656548, win 28960, options [mss 1460,sackOK,TS val 3028850078 ecr 26709261,nop,wscale 9], length 0 15:58:22.588172 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [.], ack 1, win 7300, options [nop,nop,TS val 26709262 ecr 3028850078], length 0 15:58:22.588300 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [P.], seq 1:214, ack 1, win 7300, options [nop,nop,TS val 26709262 ecr 3028850078], length 213 15:58:22.593649 IP 10.144.68.225.17706 > 10.252.234.67.36262: Flags [.], ack 214, win 59, options [nop,nop,TS val 3028850084 ecr 26709262], length 0 15:58:22.619804 IP 10.144.68.225.17706 > 10.252.234.67.36262: Flags [P.], seq 1:406, ack 214, win 59, options [nop,nop,TS val 3028850110 ecr 26709262], length 405 15:58:22.619847 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [.], ack 406, win 7568, options [nop,nop,TS val 26709270 ecr 3028850110], length 0 15:58:25.693991 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [P.], seq 214:427, ack 406, win 7568, options [nop,nop,TS val 26710039 ecr 3028850110], length 213 15:58:25.712068 IP 10.144.68.225.17706 > 10.252.234.67.36262: Flags [P.], seq 406:812, ack 427, win 61, options [nop,nop,TS val 3028853201 ecr 26710039], length 406 15:58:25.712111 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [.], ack 812, win 7836, options [nop,nop,TS val 26710043 ecr 3028853201], length 0 ```
发布于3年前 · 1 次浏览 · 来自
提问
lg430
### 问题描述 Swoole\Coroutine\Client在进入channel后重复使用时, errCode从0变成11, errMsg变成"Resource temporarily unavailable" ### Swoole版本,PHP版本,以及操作系统版本信息 swoole 4.x php 7.x ``` client json_encode结果变化 {"errCode":0,"errMsg":"","fd":16,"type":1,"setting":{"timeout":0.20000000000000001,"connect_timeout":0.10000000000000001,"write_timeout":0.20000000000000001,"read_timeout":0.69999999999999996,"open_length_check":true,"package_length_type":"V","package_length_offset":6,"package_body_offset":10,"socket_buffer_size":2097152,"open_tcp_nodelay":true},"connected":true} {"errCode":11,"errMsg":"Resource temporarily unavailable","fd":16,"type":1,"setting":{"timeout":0.20000000000000001,"connect_timeout":0.10000000000000001,"write_timeout":0.20000000000000001,"read_timeout":0.69999999999999996,"open_length_check":true,"package_length_type":"V","package_length_offset":6,"package_body_offset":10,"socket_buffer_size":2097152,"open_tcp_nodelay":true},"connected":true} ``` ``` tcpdump日志 15:58:22.582487 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [S], seq 349656547, win 29200, options [mss 1460,sackOK,TS val 26709261 ecr 0,nop,wscale 2], length 0 15:58:22.588123 IP 10.144.68.225.17706 > 10.252.234.67.36262: Flags [S.], seq 1698265523, ack 349656548, win 28960, options [mss 1460,sackOK,TS val 3028850078 ecr 26709261,nop,wscale 9], length 0 15:58:22.588172 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [.], ack 1, win 7300, options [nop,nop,TS val 26709262 ecr 3028850078], length 0 15:58:22.588300 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [P.], seq 1:214, ack 1, win 7300, options [nop,nop,TS val 26709262 ecr 3028850078], length 213 15:58:22.593649 IP 10.144.68.225.17706 > 10.252.234.67.36262: Flags [.], ack 214, win 59, options [nop,nop,TS val 3028850084 ecr 26709262], length 0 15:58:22.619804 IP 10.144.68.225.17706 > 10.252.234.67.36262: Flags [P.], seq 1:406, ack 214, win 59, options [nop,nop,TS val 3028850110 ecr 26709262], length 405 15:58:22.619847 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [.], ack 406, win 7568, options [nop,nop,TS val 26709270 ecr 3028850110], length 0 15:58:25.693991 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [P.], seq 214:427, ack 406, win 7568, options [nop,nop,TS val 26710039 ecr 3028850110], length 213 15:58:25.712068 IP 10.144.68.225.17706 > 10.252.234.67.36262: Flags [P.], seq 406:812, ack 427, win 61, options [nop,nop,TS val 3028853201 ecr 26710039], length 406 15:58:25.712111 IP 10.252.234.67.36262 > 10.144.68.225.17706: Flags [.], ack 812, win 7836, options [nop,nop,TS val 26710043 ecr 3028853201], length 0 ```
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
还没有评论!
微信公众号
热门内容
作者其它话题
- sendto系统调用阻塞问题
- 错误信号
- 内存泄露问题
- 几个小错误反馈
- 协程client问题
暂无回复的问答
- 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一直是同一个。没用使用到多进程啊。