Skip to content
Snippets Groups Projects
  1. Sep 17, 2021
  2. Sep 16, 2021
  3. Sep 15, 2021
  4. Sep 14, 2021
  5. Sep 13, 2021
  6. Sep 08, 2021
  7. Sep 07, 2021
  8. Aug 31, 2021
  9. Aug 29, 2021
  10. Aug 26, 2021
  11. Aug 22, 2021
  12. Aug 18, 2021
  13. Aug 17, 2021
    • David Goulet's avatar
      dir: Do not flag non-running failing HSDir · cac612af
      David Goulet authored
      
      When a directory request fails, we flag the relay as non Running so we
      don't use it anymore.
      
      This can be problematic with onion services because there are cases
      where a tor instance could have a lot of services, ephemeral ones, and
      keeps failing to upload descriptors, let say due to a bad network, and
      thus flag a lot of nodes as non Running which then in turn can not be
      used for circuit building.
      
      This commit makes it that we never flag nodes as non Running on a onion
      service directory request (upload or fetch) failure as to keep the
      hashring intact and not affect other parts of tor.
      
      Fortunately, the onion service hashring is _not_ selected by looking at
      the Running flag but since we do a 3-hop circuit to the HSDir, other
      services on the same instance can influence each other by removing nodes
      from the consensus for path selection.
      
      This was made apparent with a small network that ran out of nodes to
      used due to rapid succession of onion services uploading and failing.
      See #40434 for details.
      
      Fixes #40434
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      cac612af
  14. Aug 16, 2021
Loading