[verified] fix(file): pace chunks to fit rendezvous rate limit
All checks were successful
ci / test (pull_request) Successful in 2m42s
All checks were successful
ci / test (pull_request) Successful in 2m42s
Sender-side only. First chunk attempt is immediate; later attempts (retries and later chunks) wait 3s. Three attempts per chunk, then fail closed. Token bucket 30/60s burst 10 is unchanged. A 1 MiB file is 17 one-shot sessions; pacing floor is 16*3s = 48s plus handshake time. Latency trade, not a security fix.
This commit is contained in:
parent
cb91ba2b78
commit
4bbc2de9ab
5 changed files with 122 additions and 4 deletions
|
|
@ -40,7 +40,7 @@ OnionWire never holds spend keys. Optional `ONIONWIRE_WALLET_RPC` talks HTTP Dig
|
|||
|
||||
## Rate limit is availability, not anonymity
|
||||
|
||||
Incoming rendezvous accepts are token-bucket limited (30/60s, burst 10). Excess is dropped without handshake. That is a DoS/availability control. It does not hide that you run an onion, and it is not a traffic-analysis defense.
|
||||
Incoming rendezvous accepts are token-bucket limited (30/60s, burst 10). Excess is dropped without handshake. That is a DoS/availability control. It does not hide that you run an onion, and it is not a traffic-analysis defense. The constants are unchanged. Clients absorb the cost: file senders pace and retry chunks to fit this budget. The accept loop does not distinguish a friend from a flood.
|
||||
|
||||
## Network (UDP / clearnet)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue