diff options
author | Roger Dingledine <arma@torproject.org> | 2006-03-18 01:24:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-03-18 01:24:04 +0000 |
commit | 581795f41d3ab0be4d9e224ae5da1ee51fd6c842 (patch) | |
tree | e99d2fafb09aa3deb2de7182955a03f01ff0936c /src/or/circuitbuild.c | |
parent | cf6ba3e76fbf628ced2977be9f35531a81dc84c9 (diff) | |
download | tor-581795f41d3ab0be4d9e224ae5da1ee51fd6c842.tar.gz tor-581795f41d3ab0be4d9e224ae5da1ee51fd6c842.zip |
auth dir servers were only modifying a server's is_running field
when they created a network status. so if nobody asked for a
network status, they would never discover that any servers are
is_running, so they could never build a circuit.
svn:r6183
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 0ed3e84a13..d0d2279a19 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1410,19 +1410,20 @@ count_acceptable_routers(smartlist_t *routers) n = smartlist_len(routers); for (i=0;i<n;i++) { r = smartlist_get(routers, i); -// log_fn(LOG_DEBUG,"Contemplating whether router %d (%s) is a new option.", -// i, r->nickname); +// log_debug(LD_CIRC, +// "Contemplating whether router %d (%s) is a new option.", +// i, r->nickname); if (r->is_running == 0) { -// log_fn(LOG_DEBUG,"Nope, the directory says %d is not running.",i); +// log_debug(LD_CIRC,"Nope, the directory says %d is not running.",i); goto next_i_loop; } if (r->is_verified == 0) { -// log_fn(LOG_DEBUG,"Nope, the directory says %d is not verified.",i); +// log_debug(LD_CIRC,"Nope, the directory says %d is not verified.",i); /* XXXX009 But unverified routers *are* sometimes acceptable. */ goto next_i_loop; } num++; -// log_fn(LOG_DEBUG,"I like %d. num_acceptable_routers now %d.",i, num); +// log_debug(LD_CIRC,"I like %d. num_acceptable_routers now %d.",i, num); next_i_loop: ; /* C requires an explicit statement after the label */ } |