mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
but only close the new conn if one of the earlier helper nodes
that we mark up is actually reachable, fast enough, etc to use. svn:r5672
This commit is contained in:
parent
c1145138ea
commit
5d9256a367
@ -1959,11 +1959,14 @@ helper_node_set_status(const char *digest, int succeeded)
|
||||
helper->made_contact = 1;
|
||||
SMARTLIST_FOREACH(helper_nodes, helper_node_t *, h,
|
||||
{
|
||||
routerinfo_t *r = router_get_by_digest(h->identity);
|
||||
routerinfo_t *r;
|
||||
if (h->made_contact) {
|
||||
h->down_since = 0;
|
||||
refuse_conn = 1;
|
||||
if (r) r->is_running = 1;
|
||||
r = helper_is_live(h, 0, 1);
|
||||
if (r) {
|
||||
refuse_conn = 1;
|
||||
r->is_running = 1;
|
||||
}
|
||||
}
|
||||
if (h == helper)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user