Skip to content

Ping & keep alive #117

@Laxilef

Description

@Laxilef

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy