summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-04-17 11:46:23 -0400
committerNick Mathewson <nickm@torproject.org>2018-04-17 11:47:31 -0400
commit1356d51af62f839bb29eb150e6cb37edcef24d4f (patch)
tree8c7d735c63b29dc241b83f9547c48a41b5ef24ff /src/or/connection.c
parent993f5d284d3a61b7bc397ad3671dc0ebd44b891b (diff)
downloadtor-1356d51af62f839bb29eb150e6cb37edcef24d4f.tar.gz
tor-1356d51af62f839bb29eb150e6cb37edcef24d4f.zip
Rename connection_bucket_refill to connection_bucket_refill_all
Also document its actual behavior
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 1e308e9b4f..631d665af4 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -3178,9 +3178,10 @@ connection_bucket_adjust(const or_options_t *options)
}
}
-/** Time has passed; increment buckets appropriately. */
+/** Time has passed; increment buckets appropriately and re-enable formerly
+ * blocked connections. */
void
-connection_bucket_refill(time_t now, uint32_t now_ts)
+connection_bucket_refill_all(time_t now, uint32_t now_ts)
{
smartlist_t *conns = get_connection_array();