diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-22 07:41:14 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-22 07:41:14 +0000 |
commit | a98efbf285e95b0fa547639b795d14b6e6ca436d (patch) | |
tree | 12c6267d8a3f0686d4ace16462f1f3277994edd4 /src | |
parent | a2a52b4d5fc4cbea55087026459c50a82a71a3c7 (diff) | |
download | tor-a98efbf285e95b0fa547639b795d14b6e6ca436d.tar.gz tor-a98efbf285e95b0fa547639b795d14b6e6ca436d.zip |
r11877@catbus: nickm | 2007-02-22 02:24:50 -0500
Fix doc about when circuit_build_needed_circs() is called. Resolves another xxxx012.
svn:r9617
Diffstat (limited to 'src')
-rw-r--r-- | src/or/circuituse.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index e85b7c0b4a..829d1bb36b 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -431,10 +431,10 @@ circuit_predict_and_launch_new(void) /** Build a new test circuit every 5 minutes */ #define TESTING_CIRCUIT_INTERVAL 300 -/** This function is called once a second. Its job is to make sure - * all services we offer have enough circuits available. Some - * services just want enough circuits for current tasks, whereas - * others want a minimum set of idle circuits hanging around. +/** This function is called once a second, if router_have_min_dir_info() is + * true. Its job is to make sure all services we offer have enough circuits + * available. Some services just want enough circuits for current tasks, + * whereas others want a minimum set of idle circuits hanging around. */ void circuit_build_needed_circs(time_t now) @@ -445,11 +445,7 @@ circuit_build_needed_circs(time_t now) connection_ap_attach_pending(); /* make sure any hidden services have enough intro points */ - /* XXXX012 circuit_build_needed_circs is only called at all if - * router_have_minimum_dir_info is true; this check is redundant, - * and it appears to show up on some people's profiles. */ - if (1 || router_have_minimum_dir_info()) - rend_services_introduce(); + rend_services_introduce(); if (time_to_new_circuit < now) { circuit_reset_failure_count(1); |