Skip to content

Easier modifiction of incoming message handlers #165

Open
@bobveringa

Description

@bobveringa

We are looking to track additional statistics related to the connection, with a primary focus on measuring latency.

This requires calculating the time difference between PING and PINGRESP. However, it seems unlikely that many others would have a similar need for latency measurement on the connection.

Additionally, it is not possible to simply override the PINGRESP handler, as all messages are processed within the wait_msg function. For our use case, it would be beneficial if the PINGRESP handler here were separated into its own function, allowing us to override it more easily.

I understand if you prefer not to make this change, as it introduces a modification that very few others are likely interested in. If you are interested, I can submit a PR with the changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions