-
Notifications
You must be signed in to change notification settings - Fork 81
Ping & keep alive #117
Copy link
Copy link
Open
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Metadata
Metadata
Assignees
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
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.