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

心跳包问题,易语言开发 #268

Open
ysn2382617094wsw opened this issue Sep 19, 2023 · 4 comments
Open

心跳包问题,易语言开发 #268

ysn2382617094wsw opened this issue Sep 19, 2023 · 4 comments

Comments

@ysn2382617094wsw
Copy link

I TCP PACK Server/Client 组件

微信截图_20230919093025
微信截图_20230919092941
微信截图_20230919093003

设置了正常、异常心跳包间隔,也使用了超时公式计算了超时的毫秒数,那为什么还是不行?手动触发超时后,客户端就断开了,难道心跳包没有正常按时发送么?

@ysn2382617094wsw
Copy link
Author

这个问题困扰我很久了,之前一直使用断开静默连接,不好使

@ldcsaa
Copy link
Owner

ldcsaa commented Sep 29, 2023

超时还能手动触发?

@wbaby
Copy link

wbaby commented Oct 5, 2023

我跟你遇到一样问题 不过我是C++ 少量连接没事 如果连接很多后 获取到的静默连接有问题 即使该连接一直在发包收包(自己专门做了心跳包,也确定正常收发),但是这个连接会被获取到是静默连接.

@ldcsaa
Copy link
Owner

ldcsaa commented Oct 9, 2023

我跟你遇到一样问题 不过我是C++ 少量连接没事 如果连接很多后 获取到的静默连接有问题 即使该连接一直在发包收包(自己专门做了心跳包,也确定正常收发),但是这个连接会被获取到是静默连接.

静默连接根据收包判断,发包不计算在内

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

3 participants