Skip to content

refactor: enhance handshake stall guard and extend coverage to Stage 2#4730

Merged
jamesarich merged 1 commit intomainfrom
fix/config-stall
Mar 5, 2026
Merged

refactor: enhance handshake stall guard and extend coverage to Stage 2#4730
jamesarich merged 1 commit intomainfrom
fix/config-stall

Conversation

@jamesarich
Copy link
Copy Markdown
Collaborator

  • Extract handshake timeout and retry logic into a reusable startHandshakeStallGuard function.
  • Apply the stall guard to both startConfigOnly (Stage 1) and startNodeInfoOnly (Stage 2) to ensure connection attempts don't hang.
  • Increase HANDSHAKE_TIMEOUT from 10 seconds to 30 seconds to reduce false-positive stall detections on slower links.

- Extract handshake timeout and retry logic into a reusable `startHandshakeStallGuard` function.
- Apply the stall guard to both `startConfigOnly` (Stage 1) and `startNodeInfoOnly` (Stage 2) to ensure connection attempts don't hang.
- Increase `HANDSHAKE_TIMEOUT` from 10 seconds to 30 seconds to reduce false-positive stall detections on slower links.

Signed-off-by: James Rich <[email protected]>
@github-actions github-actions bot added the bugfix PR tag label Mar 5, 2026
@jamesarich jamesarich merged commit 87fdaa2 into main Mar 5, 2026
3 checks passed
@jamesarich jamesarich deleted the fix/config-stall branch March 5, 2026 22:06
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (63984f0) to head (71dc398).
⚠️ Report is 8 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4730   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          3       3           
  Lines        231     231           
  Branches      34      34           
=====================================
  Misses       231     231           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant