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

Ping & keep alive #117

Open
Laxilef opened this issue Jan 26, 2025 · 0 comments
Open

Ping & keep alive #117

Laxilef opened this issue Jan 26, 2025 · 0 comments
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@Laxilef
Copy link

Laxilef commented Jan 26, 2025

Hi,

I have a question about the correctness of ping. Should we wait until keep alive expires? Most likely the server will disconnect the client and we will not be able to ping().
Maybe the condition should be something like (now - _lastPingTx) >= (_keepAliveInterval * 0.9f)?

I ask because we have encountered a situation where a broker disconnects a client.

@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants