fix(f3): disconnect silent peers after receive timeout #5452
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.40) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 157 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.303
Real PR Conversation Timeline
1 comments
"Review active on #5452"
general
weight: 0.35
efegokdemir
Fixes #5431
Description
F3 closes established heartbeat-capable connections after a configurable period without received frames, allowing active connectors to retry. PING/PONG handling now bypasses application frame workers, and heartbeat sends run outside the deadline scanner so a blocked synchronous write cannot delay checks for other connections.
Types of changes
./runtest.sh.Testing
The focused
tests/integration_test/fast/f3_heartbeat_backpressure_test.pysuite passed (13 tests) in an isolated Python 3.12 environment. Black, isort, flake8 on the new test module, andgit diff --checkpassed. The full./runtest.shsuite was not run.Risk
Heartbeat frames use a per-connection daemon sender, with at most one send of each control type in flight. A synchronous transport write can still wait on backpressure; it no longer blocks application frame workers or the timeout scanner.