every.channel/evolution/proposals/ECP-0055-directory-timeouts.md
2026-02-15 16:17:27 -05:00

17 lines
596 B
Markdown

# ECP-0055: Directory HTTP Timeouts For Direct-Publish
Status: Draft
## Problem
`ec-node direct-publish` keeps directory listings alive by periodically POSTing to `/api/announce`.
If a single refresh POST hangs indefinitely (no client timeout), the refresh loop can stall and the
listing expires, making streams undiscoverable.
## Proposal
- Build a `reqwest::Client` with a small default timeout (e.g. 8s) for directory operations.
- Wrap periodic refresh POSTs in an additional short `tokio::time::timeout` guard.
This keeps directory liveness resilient under intermittent connectivity.