首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
recv() failed. Error: Resource temporarily unavailable [11]
基本信息: PHP 5.6.4;Swoole版本 1.7.20 代码中打印了$serv->send();值为true;通过tcpdump查看网络通信过程,看的不是太懂,下面是我通过tcpdump得到的过程,请帮忙分析下,谢谢 不太会弄格式,不好意思 {{{ tcpdump host 192.168.2.142 and 192.168.2.152 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 18:12:49.104862 ARP, Request who-has 192.168.2.142 tell 192.168.2.152, length 28 18:12:49.753857 ARP, Reply 192.168.2.142 is-at 34:23:87:f7:c9:61 (oui Unknown), length 46 18:12:49.753868 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [S], seq 3166435416, win 14600, options [mss 1460,sackOK,TS val 451978718 ecr 0,nop,wscale 7], length 0 18:12:50.117801 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [S], seq 3166435416, win 14600, options [mss 1460,sackOK,TS val 451979731 ecr 0,nop,wscale 7], length 0 18:12:50.848015 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [S.], seq 602191362, ack 3166435417, win 14480, options [mss 1460,sackOK,TS val 30640180 ecr 451978718,nop,wscale 6], length 0 18:12:50.848086 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [.], ack 1, win 115, options [nop,nop,TS val 451980462 ecr 30640180], length 0 18:12:50.848310 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [S.], seq 602191362, ack 3166435417, win 14480, options [mss 1460,sackOK,TS val 30640180 ecr 451978718,nop,wscale 6], length 0 18:12:50.848323 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [.], ack 1, win 115, options [nop,nop,TS val 451980462 ecr 30640180], length 0 18:12:50.848564 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [P.], seq 1:237, ack 1, win 115, options [nop,nop,TS val 451980462 ecr 30640180], length 236 18:12:51.992946 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [.], ack 237, win 243, options [nop,nop,TS val 30641264 ecr 451980462], length 0 18:12:51.993424 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [P.], seq 1:190, ack 237, win 243, options [nop,nop,TS val 30641269 ecr 451980462], length 189 18:12:51.993460 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [.], ack 190, win 123, options [nop,nop,TS val 451981607 ecr 30641269], length 0 18:12:51.993748 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [P.], seq 237:410, ack 190, win 123, options [nop,nop,TS val 451981607 ecr 30641269], length 173 18:12:52.351816 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [.], ack 410, win 260, options [nop,nop,TS val 30642090 ecr 451981607], length 0 18:13:21.999660 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [F.], seq 410, ack 190, win 123, options [nop,nop,TS val 452011613 ecr 30642090], length 0 18:13:22.036338 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [F.], seq 190, ack 411, win 260, options [nop,nop,TS val 30671839 ecr 452011613], length 0 18:13:22.036371 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [.], ack 191, win 123, options [nop,nop,TS val 452011650 ecr 30671839], length 0 }}}
发布于6年前 · 5 次浏览 · 来自
提问
花
花偶人间
基本信息: PHP 5.6.4;Swoole版本 1.7.20 代码中打印了$serv->send();值为true;通过tcpdump查看网络通信过程,看的不是太懂,下面是我通过tcpdump得到的过程,请帮忙分析下,谢谢 不太会弄格式,不好意思 {{{ tcpdump host 192.168.2.142 and 192.168.2.152 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 18:12:49.104862 ARP, Request who-has 192.168.2.142 tell 192.168.2.152, length 28 18:12:49.753857 ARP, Reply 192.168.2.142 is-at 34:23:87:f7:c9:61 (oui Unknown), length 46 18:12:49.753868 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [S], seq 3166435416, win 14600, options [mss 1460,sackOK,TS val 451978718 ecr 0,nop,wscale 7], length 0 18:12:50.117801 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [S], seq 3166435416, win 14600, options [mss 1460,sackOK,TS val 451979731 ecr 0,nop,wscale 7], length 0 18:12:50.848015 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [S.], seq 602191362, ack 3166435417, win 14480, options [mss 1460,sackOK,TS val 30640180 ecr 451978718,nop,wscale 6], length 0 18:12:50.848086 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [.], ack 1, win 115, options [nop,nop,TS val 451980462 ecr 30640180], length 0 18:12:50.848310 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [S.], seq 602191362, ack 3166435417, win 14480, options [mss 1460,sackOK,TS val 30640180 ecr 451978718,nop,wscale 6], length 0 18:12:50.848323 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [.], ack 1, win 115, options [nop,nop,TS val 451980462 ecr 30640180], length 0 18:12:50.848564 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [P.], seq 1:237, ack 1, win 115, options [nop,nop,TS val 451980462 ecr 30640180], length 236 18:12:51.992946 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [.], ack 237, win 243, options [nop,nop,TS val 30641264 ecr 451980462], length 0 18:12:51.993424 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [P.], seq 1:190, ack 237, win 243, options [nop,nop,TS val 30641269 ecr 451980462], length 189 18:12:51.993460 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [.], ack 190, win 123, options [nop,nop,TS val 451981607 ecr 30641269], length 0 18:12:51.993748 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [P.], seq 237:410, ack 190, win 123, options [nop,nop,TS val 451981607 ecr 30641269], length 173 18:12:52.351816 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [.], ack 410, win 260, options [nop,nop,TS val 30642090 ecr 451981607], length 0 18:13:21.999660 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [F.], seq 410, ack 190, win 123, options [nop,nop,TS val 452011613 ecr 30642090], length 0 18:13:22.036338 IP 192.168.2.142.11601 > 192.168.2.152.47034: Flags [F.], seq 190, ack 411, win 260, options [nop,nop,TS val 30671839 ecr 452011613], length 0 18:13:22.036371 IP 192.168.2.152.47034 > 192.168.2.142.11601: Flags [.], ack 191, win 123, options [nop,nop,TS val 452011650 ecr 30671839], length 0 }}}
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
2018-01-28
W@空心人
的确就是像韩老师在另一个相同问题下回答的一样,服务器没有向客户端发送信息,所以客户端调用recv会超时并失败。已解决
赞
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一直是同一个。没用使用到多进程啊。