summaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-03 09:28:33 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-03 09:28:33 -0400
commita06c46533392751b8fbcfd231233624f63d39dc6 (patch)
treef69a04d9d256778ac880fc12c83768b9b61ee21f /src/or/rendservice.c
parent5d8061cd019a751530a25fa99a7300b84df1722f (diff)
parente0486c937178981585d45b65b359f488ed96c06d (diff)
downloadtor-a06c46533392751b8fbcfd231233624f63d39dc6.tar.gz
tor-a06c46533392751b8fbcfd231233624f63d39dc6.zip
Merge remote-tracking branch 'teor/bug21596_030' into maint-0.3.0
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 79fec9fd5c..fb777ca154 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -4070,6 +4070,10 @@ rend_consider_services_intro_points(void)
smartlist_clear(exclude_nodes);
smartlist_clear(retry_nodes);
+ /* Cleanup the invalid intro points and save the node objects, if any,
+ * in the exclude_nodes and retry_nodes lists. */
+ remove_invalid_intro_points(service, exclude_nodes, retry_nodes, now);
+
/* This retry period is important here so we don't stress circuit
* creation. */
if (now > service->intro_period_started + INTRO_CIRC_RETRY_PERIOD) {
@@ -4080,14 +4084,10 @@ rend_consider_services_intro_points(void)
rend_max_intro_circs_per_period(
service->n_intro_points_wanted)) {
/* We have failed too many times in this period; wait for the next
- * one before we try again. */
+ * one before we try to initiate any more connections. */
continue;
}
- /* Cleanup the invalid intro points and save the node objects, if apply,
- * in the exclude_nodes and retry_nodes list. */
- remove_invalid_intro_points(service, exclude_nodes, retry_nodes, now);
-
/* Let's try to rebuild circuit on the nodes we want to retry on. */
SMARTLIST_FOREACH_BEGIN(retry_nodes, rend_intro_point_t *, intro) {
r = rend_service_launch_establish_intro(service, intro);