Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] SocketIO的pingtimeout值过小引起的客户端假性认为超时导致断线 #2440

Closed
ddk2222-luck opened this issue Sep 4, 2020 · 0 comments · Fixed by #2441
Closed
Labels
bug Something isn't working

Comments

@ddk2222-luck
Copy link

Hyperf版本:v.2.0.8
客户端Socket.IO版本:v2.3.0

Description:

Hyperf\SocketIOServer\SocketIO.php 的 pingtimeout 默认值是:100毫秒,,客户端发送了ping,但是由于推送消息比较多或者网络较卡的情况下,接收到的服务器pong的时间会很容易超过这个阈值,导致客户端认为服务器回应ping超时了,实际上这个时候TCP的连接并没有断开.

这个私有变量也没办法在其他地方设置,暂时我们修改源文件改成5000后,几乎不断线了.

@ddk2222-luck ddk2222-luck added the bug Something isn't working label Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant