dos: Make circuit rate limit per second, not tenths anymore
commite58a4fc6cfcdeafc2ebfb61fd3cf6d163ce2436c
authorDavid Goulet <dgoulet@torproject.org>
Mon, 29 Jan 2018 16:50:11 +0000 (29 11:50 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 30 Jan 2018 14:18:16 +0000 (30 09:18 -0500)
tree3747d076cdafbdab0ebe518f006f79f2395c8ad2
parenta3714268f659998dc879ed723852440cd8be1b04
dos: Make circuit rate limit per second, not tenths anymore

Because this touches too many commits at once, it is made into one single
commit.

Remove the use of "tenths" for the circuit rate to simplify things. We can
only refill the buckets at best once every second because of the use of
approx_time() and our token system is set to be 1 token = 1 circuit so make
the rate a flat integer of circuit per second.

Signed-off-by: David Goulet <dgoulet@torproject.org>
doc/tor.1.txt
src/or/config.c
src/or/dos.c
src/or/dos.h
src/or/or.h