mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Two no-timeout fetch sites a hung remote could pin indefinitely:
src/commands/verify.ts:fetchWitness
Bare fetch(url) for the verification manifest. Now AbortSignal.timeout(30000) —
a sub-MB JSON over a public CDN should never need more than 30s, and we'd
rather fail fast than hang the verify CLI.
src/transfer/ipfs/upload.ts:checkContent
HEAD probe to an IPFS gateway, no timeout. Now AbortSignal.timeout(10000) —
HEAD without a body has no excuse to take longer.
Other no-timeout sites (download.ts streaming, upload.ts large POSTs) are
deliberately left alone — an absolute timeout would falsely abort slow but
progressing transfers of large blobs. Those need a connect-vs-transfer
timeout split, deferred to a separate change.
Verified:
- tsc --noEmit clean