[tor-bugs] #911 [Tor Relay]: Authorities assign Running flag to hibernating relays?

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Aug 14 09:22:44 UTC 2010


#911: Authorities assign Running flag to hibernating relays?
--------------------------------+-------------------------------------------
 Reporter:  arma                |         Type:  defect   
   Status:  needs_review        |     Priority:  minor    
Milestone:  Tor: 0.2.2.x-final  |    Component:  Tor Relay
  Version:  0.2.0.31            |   Resolution:  None     
 Keywords:                      |       Parent:           
--------------------------------+-------------------------------------------

Comment(by arma):

 Speaking of commit 4f307e038272, here's another patch we probably want
 here:

 diff --git a/src/or/routerlist.c b/src/or/routerlist.c
 index 8808f56..9a45431 100644
 --- a/src/or/routerlist.c
 +++ b/src/or/routerlist.c
 @@ -3257,6 +3257,11 @@ router_add_to_routerlist(routerinfo_t *router,
 const char
          router->last_reachable = old_router->last_reachable;
          router->testing_since = old_router->testing_since;
        }
 +      if (authdir && !from_cache &&
 +          old_router->is_hibernating && !router->is_hibernating) {
 +        /* do a new reachability test right now */
 +        dirserv_single_reachability_test(time(NULL), router);
 +      }
        routerlist_replace(routerlist, old_router, router);
        if (!from_cache) {
          signed_desc_append_to_journal(&router->cache_info,

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/911#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list