Rework token bucket rate limiting (#5105) * Rename rate limiter consume API * Rework token bucket rate limiting Add reusable token bucket limiters with thread-safe and single-threaded variants, retry hints, unlimited mode, burst configuration, and coverage for refill, reset, oversized requests, and concurrency. Update bandwidth, bootstrap, backlog, broadcast, and TCP send paths to use retry-aware limiter waits instead of fixed polling delays.
__________
Type: commit
Hash: fb2e93f72db96502bf18eb62791290427d535c14
Created: yesterday
__________
gr0v1ty/nano-node:fb2e93f72db96502bf18eb62791290427d535c14
| Test Case | Status | Duration | Median Deviation | Log | Graph |
|---|---|---|---|---|---|
| 5n4pr_conf_10k_bintree | PASS | 116 s | 4.5 s | - | Show |
| 5n4pr_conf_10k_change | PASS | 205 s | 7.0 s | - | Show |
| 5n4pr_conf_change_dependant | PASS | 110 s | -2.5 s | - | - |
| 5n4pr_conf_change_independant | PASS | 124 s | 14.5 s | - | - |
| 5n4pr_conf_send_dependant | PASS | 152 s | 41.0 s | - | - |
| 5n4pr_conf_send_independant | PASS | 108 s | -3.0 s | - | - |
| 5n4pr_rocks_10k_bintree | PASS | 116 s | 2.0 s | - | - |
| 5n4pr_rocks_10k_change | FAIL | 136 s | -54.0 s | Show | - |