3.5.12时不时的会收到这个错误

PHP Fatal error: Uncaught exception 'Exception' with message 'You can't send(NULL) to client, you need to convert it to a string. ' in /data/socket.io/vendor/workerman/workerman/Protocols/Websocket.php:236 Sta...

spridu 发表与 2018-07-15 2464 浏览 1 回答
心跳包设置pingNotResponseLimit后,客户端会断开

客户端与Gateway进行websocket长连接的情况下, 设置了pingInterval=30,pingNotResponseLimit=0, 这种情况下,客户端会稳定连接着, 但如果设置了pingNotResponseLimit > 0,等于1至等于5都试过, 就会在 30 * pingNotResponseLimit时断开链接; 防火墙是关着的,所以不会受防火墙的影响,本以为可能是服务器环境问题, 后来...

JoeZing 发表与 2017-05-25 7454 浏览 4 回答

spridu

1999
积分
0
获赞数
0
粉丝数
2018-03-20 加入
🔝