[or-cvs] but only close it if we have marked an earlier helper as up.

arma at seul.org arma at seul.org
Wed Dec 28 07:20:35 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	circuitbuild.c 
Log Message:
but only close it if we have marked an earlier helper as up.
that way we don't close it too needlessly.


Index: circuitbuild.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitbuild.c,v
retrieving revision 1.194
retrieving revision 1.195
diff -u -p -d -r1.194 -r1.195
--- circuitbuild.c	28 Dec 2005 07:19:55 -0000	1.194
+++ circuitbuild.c	28 Dec 2005 07:20:33 -0000	1.195
@@ -1957,12 +1957,12 @@ helper_node_set_status(const char *diges
              * helpers another try too, and close this connection so
              * we don't use it before we've given the others a shot. */
             helper->made_contact = 1;
-            refuse_conn = 1;
             SMARTLIST_FOREACH(helper_nodes, helper_node_t *, h,
               {
                 routerinfo_t *r = router_get_by_digest(h->identity);
                 if (h->made_contact) {
                   h->down_since = 0;
+                  refuse_conn = 1;
                   if (r) r->is_running = 1;
                 }
                 if (h == helper)



More information about the tor-commits mailing list