Skip to content

Conversation

BengangY
Copy link
Contributor

@BengangY BengangY commented Jun 5, 2025

The heartbeat_latency is the interval between each heartbeat transmission. After splitting the heartbeat thread into two threads (sending and receiving), the latency is now measured immediately after sending a heartbeat.

With this change, the calculation logic should be updated as follows:

  1. If sending the heartbeat takes longer than the configured heartbeat interval, heartbeat_latency is the actual elapsed time.
  2. Otherwise, heartbeat_latency is the configured heartbeat interval.

The `heartbeat_latency` is the interval between each heartbeat
transmission. After splitting the heartbeat thread into two threads
(sending and receiving), the latency is now measured immediately after
sending a heartbeat.

With this change, the calculation logic should be updated as follows:
1. If sending the heartbeat takes longer than the configured heartbeat
   interval, `heartbeat_latency` is the actual elapsed time.
2. Otherwise, `heartbeat_latency` is the configured heartbeat interval.

Signed-off-by: Bengang Yuan <[email protected]>
Copy link
Contributor

@psafont psafont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm blocking this because I think the change contravenes the XHA interface specification (which is not public)

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

Successfully merging this pull request may close these issues.

2 participants