1. 02 Nov, 2016 1 commit
    • Alexander Færøy's avatar
      Refactor common code in router_pick_{directory_server,trusteddirserver}_impl. · 9be62e4c
      Alexander Færøy authored
      This patch is the initial attempt at refactoring common code found in
      router_pick_directory_server_impl and router_pick_trusteddirserver_impl.
      
      We remove the functions router_is_already_dir_fetching_ds and
      router_is_already_dir_fetching_rs and lift their body into the macro
      SKIP_IF_ALREADY_DIR_FETCHING. These two functions had the exact same
      function body, but was created to support the dir_server_t and
      routerstatus_t types respectively. Using a macro we can reduce this to a
      single macro instead of two functions.
      
      Additionally, we lift common code found within
      router_pick_trusteddirserver_impl and router_pick_directory_server_impl
      into the following macros:
      
       - SKIP_MISSING_TRUSTED_EXTRAINFO(identity): Check if a given server's
         identity supports fetching the extra-info document, otherwise skip
         it.
      
       - SKIP_EXCLUDED(status, country): Check if a given server's included in
         the users' ExcludeNodes torrc configuration entry, if so, skip it.
      
      This is a partial fix of bug #17847.
      9be62e4c
  2. 01 Nov, 2016 8 commits
  3. 31 Oct, 2016 13 commits
  4. 29 Oct, 2016 1 commit
  5. 28 Oct, 2016 2 commits
  6. 27 Oct, 2016 6 commits
  7. 26 Oct, 2016 9 commits