mirror of
https://github.com/jmcorgan/fips.git
synced 2026-07-22 07:48:26 +00:00
9d36977ec87e0ba258738afcf11a46df760f2897
Fix promote_connection() to detect and clean up pending outbound handshakes to the same peer, not just already-promoted peers. Previously, when an inbound handshake completed while an outbound was still pending, the outbound would linger until the 30s timeout. Add auto-retry for failed outbound connections to auto-connect peers: - New RetryState struct and node/retry.rs module - Exponential backoff (default 5s base, max 5 attempts) - Config: node.max_retries, node.base_retry_interval_secs - check_timeouts() schedules retries, rx loop processes them - promote_connection() clears retry state on success - Remove unused PeerConnection retry fields (state now at Node level) Move cleanup_stale_connection() logging to callers for context-appropriate messages. 289 tests pass, clean build.
FIPS Documentation
| Directory | Description |
|---|---|
| design/ | Protocol design specifications and analysis |
Languages
Rust
86.1%
Shell
10.4%
Python
3%
PowerShell
0.2%
Makefile
0.1%