Skip to content

ENT-13699: Added HEARTBEAT protocol version (v5) for keeping long-running connections alive#6068

Open
larsewi wants to merge 1 commit intocfengine:masterfrom
larsewi:heartbeat
Open

ENT-13699: Added HEARTBEAT protocol version (v5) for keeping long-running connections alive#6068
larsewi wants to merge 1 commit intocfengine:masterfrom
larsewi:heartbeat

Conversation

@larsewi
Copy link
Copy Markdown
Contributor

@larsewi larsewi commented Apr 9, 2026

Summary

  • Added CF_PROTOCOL_HEARTBEAT (protocol version 5) to the ProtocolVersion enum
  • Added SendHeartbeat() for sending keep-alive transactions during long-running server-side operations
  • Modified ReceiveTransaction() to silently consume heartbeat transactions, with a time-based cap (150s) to prevent denial of service
  • Version negotiation is backward-compatible: heartbeats only flow when both sides support v5

🤖 Generated with Claude Code

…tions alive

Added CF_PROTOCOL_HEARTBEAT (protocol version 5) which allows either
side of a connection to send periodic heartbeat transactions to keep it
alive during long-running operations. ReceiveTransaction() silently
consumes heartbeats so callers never see them, with a time-based cap
(150s) to prevent denial of service.

Ticket: ENT-13699
Changelog: Title
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants