aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2016-04-13 02:54:31 -0400
committerRoger Dingledine <arma@torproject.org>2016-05-09 14:41:14 -0400
commita7665df2f8607403e5e14bf1af7426cedfea01dc (patch)
treecb84d1a68e4db2c86d813bafb89f5e83123d2b4a /src/or/main.c
parent59da060f10e6abd1681ad00dddd4410d52ce1781 (diff)
downloadtor-a7665df2f8607403e5e14bf1af7426cedfea01dc.tar.gz
tor-a7665df2f8607403e5e14bf1af7426cedfea01dc.zip
close other consensus fetches when we get a consensus
not once per second, and only do it when a consensus arrives
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/or/main.c b/src/or/main.c
index bf5b2b823a..3d84de6633 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1484,17 +1484,6 @@ run_scheduled_events(time_t now)
dirvote_act(options, now);
}
- /* 2d. Cleanup excess consensus bootstrap connections every second.
- * connection_dir_close_consensus_conn_if_extra() closes some connections
- * that are clearly excess, but this check is more thorough.
- * This only closes connections if there is more than one consensus
- * connection, and at least one of those connections is already downloading
- * (during bootstrap), or connecting (just after the bootstrap consensus is
- * downloaded).
- * It won't close any consensus connections initiated after bootstrap,
- * because those attempts are made one at a time. */
- connection_dir_close_extra_consensus_conns();
-
/* 3a. Every second, we examine pending circuits and prune the
* ones which have been pending for more than a few seconds.
* We do this before step 4, so it can try building more if