Commit 8663445
committed
[Fix #10] Throttle client polling to avoid GET floods
After an HTTP request that returns no results, block on the incoming
queue for up to 100ms before retrying. This limits idle polling to
~10 requests/sec while still returning results immediately when
they're available.1 parent 9c6bdb9 commit 8663445
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
0 commit comments