Skip to content

Net resume read heartbeat - #6523

Merged
markhannum merged 2 commits into
bloomberg:mainfrom
markhannum:net-resume-read-heartbeat
Nov 25, 2026
Merged

markhannum merged 2 commits into
bloomberg:mainfrom
markhannum:net-resume-read-heartbeat

Conversation

@markhannum

Copy link
Copy Markdown
Contributor

Reset the heartbeat clock when a read paused by a full read buffer resumes. Otherwise the next check counts the pause as peer silence ("no data in N seconds") and drops a healthy connection, as a lagging anrdb replicant did under load. New test net_resume_heartbeat fails without the fix.

A connection stops reading while its read buffer is full and skips heartbeat checks, but
on resume recv_at was still from before the pause, so a check before the next read timed
out a healthy peer ("no data in N seconds"). Seen on a lagging replicant under heavy load.

Signed-off-by: Mark Hannum <mhannum@bloomberg.net>
…limit

Signed-off-by: Mark Hannum <mhannum@bloomberg.net>
@markhannum
markhannum merged commit 3b94da6 into bloomberg:main Nov 25, 2026
6 checks passed
@markhannum
markhannum deleted the net-resume-read-heartbeat branch November 25, 2026 15:34
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