首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
排查recv() failed. Error: Resource temporarily unavailable [11]
基本信息: PHP 5.6 使用pecl安装的Swoole 1.7.10 。 运行了文档提供的入门脚本 github.com/shijij/swoole-doc/blob/master/01-%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E5%8F%8A%E6%89%A9%E5%B1%95%E5%AE%89%E8%A3%85.md 先运行Server,没有报错。 运行Client报错: php client.php PHP Warning: swoole_client::recv(): recv() failed. Error: Resource temporarily unavailable [11] in /home/xxx/dev/sw/client.php on line 14 Get Message From Server: 根据官方文档排查: wiki.swoole.com/wiki/page/234.html tcpdump: {{{ tcpdump: listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes 12:05:37.452915 IP (tos 0x0, ttl 64, id 30975, offset 0, flags [DF], proto TCP (6), length 60) localhost.51651 > localhost.9501: Flags [S], cksum 0xfe30 (incorrect -> 0x5ab2), seq 3498161607, win 43690, options [mss 65495,sackOK,TS val 135974200 ecr 0,nop,wscale 7], length 0 23:32:24.923021 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 60) localhost.9501 > localhost.51651: Flags [S.], cksum 0xfe30 (incorrect -> 0x65db), seq 241373456, ack 3498161608, win 43690, options [mss 65495,sackOK,TS val 135974200 ecr 135974200,nop,wscale 7], length 0 12:05:37.452970 IP (tos 0x0, ttl 64, id 30976, offset 0, flags [DF], proto TCP (6), length 52) localhost.51651 > localhost.9501: Flags [.], cksum 0xfe28 (incorrect -> 0x3820), seq 1, ack 1, win 342, options [nop,nop,TS val 135974200 ecr 135974200], length 0 12:05:41.056923 IP (tos 0x0, ttl 64, id 30977, offset 0, flags [DF], proto TCP (6), length 61) localhost.51651 > localhost.9501: Flags [P.], cksum 0xfe31 (incorrect -> 0x390d), seq 1:10, ack 1, win 342, options [nop,nop,TS val 135975281 ecr 135974200], length 9 12:05:41.056945 IP (tos 0x0, ttl 64, id 56361, offset 0, flags [DF], proto TCP (6), length 52) localhost.9501 > localhost.51651: Flags [.], cksum 0xfe28 (incorrect -> 0x2fa5), seq 1, ack 10, win 342, options [nop,nop,TS val 135975281 ecr 135975281], length 0 12:05:41.056992 IP (tos 0x0, ttl 64, id 30978, offset 0, flags [DF], proto TCP (6), length 52) localhost.51651 > localhost.9501: Flags [F.], cksum 0xfe28 (incorrect -> 0x2fa4), seq 10, ack 1, win 342, options [nop,nop,TS val 135975281 ecr 135975281], length 0 12:05:41.094300 IP (tos 0x0, ttl 64, id 56362, offset 0, flags [DF], proto TCP (6), length 52) localhost.9501 > localhost.51651: Flags [.], cksum 0xfe28 (incorrect -> 0x2f98), seq 1, ack 11, win 342, options [nop,nop,TS val 135975293 ecr 135975281], length 0 }}} 好像Checksum全部出错,这是什么情况?
发布于10年前 · 8 次浏览 · 来自
提问
律
律香川
基本信息: PHP 5.6 使用pecl安装的Swoole 1.7.10 。 运行了文档提供的入门脚本 github.com/shijij/swoole-doc/blob/master/01-%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E5%8F%8A%E6%89%A9%E5%B1%95%E5%AE%89%E8%A3%85.md 先运行Server,没有报错。 运行Client报错: php client.php PHP Warning: swoole_client::recv(): recv() failed. Error: Resource temporarily unavailable [11] in /home/xxx/dev/sw/client.php on line 14 Get Message From Server: 根据官方文档排查: wiki.swoole.com/wiki/page/234.html tcpdump: {{{ tcpdump: listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes 12:05:37.452915 IP (tos 0x0, ttl 64, id 30975, offset 0, flags [DF], proto TCP (6), length 60) localhost.51651 > localhost.9501: Flags [S], cksum 0xfe30 (incorrect -> 0x5ab2), seq 3498161607, win 43690, options [mss 65495,sackOK,TS val 135974200 ecr 0,nop,wscale 7], length 0 23:32:24.923021 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 60) localhost.9501 > localhost.51651: Flags [S.], cksum 0xfe30 (incorrect -> 0x65db), seq 241373456, ack 3498161608, win 43690, options [mss 65495,sackOK,TS val 135974200 ecr 135974200,nop,wscale 7], length 0 12:05:37.452970 IP (tos 0x0, ttl 64, id 30976, offset 0, flags [DF], proto TCP (6), length 52) localhost.51651 > localhost.9501: Flags [.], cksum 0xfe28 (incorrect -> 0x3820), seq 1, ack 1, win 342, options [nop,nop,TS val 135974200 ecr 135974200], length 0 12:05:41.056923 IP (tos 0x0, ttl 64, id 30977, offset 0, flags [DF], proto TCP (6), length 61) localhost.51651 > localhost.9501: Flags [P.], cksum 0xfe31 (incorrect -> 0x390d), seq 1:10, ack 1, win 342, options [nop,nop,TS val 135975281 ecr 135974200], length 9 12:05:41.056945 IP (tos 0x0, ttl 64, id 56361, offset 0, flags [DF], proto TCP (6), length 52) localhost.9501 > localhost.51651: Flags [.], cksum 0xfe28 (incorrect -> 0x2fa5), seq 1, ack 10, win 342, options [nop,nop,TS val 135975281 ecr 135975281], length 0 12:05:41.056992 IP (tos 0x0, ttl 64, id 30978, offset 0, flags [DF], proto TCP (6), length 52) localhost.51651 > localhost.9501: Flags [F.], cksum 0xfe28 (incorrect -> 0x2fa4), seq 10, ack 1, win 342, options [nop,nop,TS val 135975281 ecr 135975281], length 0 12:05:41.094300 IP (tos 0x0, ttl 64, id 56362, offset 0, flags [DF], proto TCP (6), length 52) localhost.9501 > localhost.51651: Flags [.], cksum 0xfe28 (incorrect -> 0x2f98), seq 1, ack 11, win 342, options [nop,nop,TS val 135975293 ecr 135975281], length 0 }}} 好像Checksum全部出错,这是什么情况?
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2016-07-07
丨
丨C c灬
服务器没有向客户端发送信息,所以客户端调用recv会超时并失败。
赞
0
回复
2018-07-28
s
sfsd
我也遇到了
赞
0
回复
2019-08-21
石
石头剪子布
我用的是UDP协议,调用的SIP服务器。在接收数据时,也遇到了这种情况!请问有没有办法避免报这个错误?最好给报个110错误码。看到11这个错误类型时,会误以为用户的进程数被限制了。
赞
0
回复