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

客户端断网后服务端不知道客户端断开了 #249

Open
fngang opened this issue May 9, 2023 · 1 comment
Open

客户端断网后服务端不知道客户端断开了 #249

fngang opened this issue May 9, 2023 · 1 comment

Comments

@fngang
Copy link

fngang commented May 9, 2023

服务端和客户端正常连接状态下,客户端直接断网,服务端没反应,不会断开客户端,等这个客户端再次连上网络后服务端就维护了两个客户端会话,一直重复一直添加.

@aazainn
Copy link

aazainn commented Jul 6, 2023

首先排除客户端是否有启动多个连接,如果没有。尝试让客户端发送心跳,然后配置readerIdleTimeSeconds,在一定时间内,没有收到客户端发送的心跳的,就关闭客户端

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants