1. 12 Jul, 2021 4 commits
  2. 06 Jul, 2021 2 commits
    • Cecylia Bocovich's avatar
      Update torrc to encourage use of BridgeDistribution · 16e51724
      Cecylia Bocovich authored
      Bridge operators should generally publish their descriptors except for
      rare cases, and instead use the BridgeDistribution none setting to
      prevent their bridge from being distributed by BridgeDB.
    • Nick Mathewson's avatar
      Use native timegm when available. · c1d96358
      Nick Mathewson authored
      Continue having a tor_gmtime_impl() unit test so that we can detect
      any problems in our replacement function; add a new test function to
      make sure that gmtime<->timegm are a round-trip on now-ish times.
      This is a fix for bug #40383, wherein we ran into trouble because
      tor_timegm() does not believe that time_t should include a count of
      leap seconds, but FreeBSD's gmtime believes that it should.  This
      disagreement meant that for a certain amount of time each day,
      instead of calculating the most recent midnight, our voting-schedule
      functions would calculate the second-most-recent midnight, and lead
      to an assertion failure.
      I am calling this a bugfix on when we first started
      calculating our voting schedule in this way.
  3. 01 Jul, 2021 5 commits
  4. 30 Jun, 2021 2 commits
  5. 29 Jun, 2021 5 commits
  6. 28 Jun, 2021 2 commits
  7. 25 Jun, 2021 1 commit
  8. 18 Jun, 2021 1 commit
  9. 14 Jun, 2021 3 commits
  10. 10 Jun, 2021 5 commits
  11. 08 Jun, 2021 1 commit
  12. 07 Jun, 2021 4 commits
  13. 28 May, 2021 2 commits
  14. 27 May, 2021 2 commits
    • Roger Dingledine's avatar
      clarify three comments · 896ab165
      Roger Dingledine authored
      based on code-spelunking with nickm
    • Nick Mathewson's avatar
      Upgrade and rate-limit compression failure message. · fc3d4e4c
      Nick Mathewson authored
      Without this message getting logged at 'WARN', it's hard to
      contextualize the messages we get about compression bombs, so this
      message should fix #40175.
      I'm rate-limiting this, however, since it _could_ get spammy if
      somebody on the network starts acting up.  (Right now it should be
      very quiet; I've asked Sebastian to check it, and he says that he
      doesn't hit this message in practice.)
      Closes #40175.
  15. 26 May, 2021 1 commit
    • Nick Mathewson's avatar
      Prefer mmap()ed consensus files over cached_dir_t entries. · d12b1661
      Nick Mathewson authored
      Cached_dir_t is a somewhat "legacy" kind of storage when used for
      consensus documents, and it appears that there are cases when
      changing our settings causes us to stop updating those entries.
      This can cause trouble, as @arma found out in #40375, where he
      changed his settings around, and consensus diff application got
      messed up: consensus diffs were being _requested_ based on the
      latest consensus, but were being (incorrectly) applied to a
      consensus that was no longer the latest one.
      This patch is a minimal fix for backporting purposes: it has Tor do
      the same search when applying consensus diffs as we use to request
      them.  This should be sufficient for correct behavior.
      There's a similar case in GETINFO handling; I've fixed that too.
      Fixes #40375; bugfix on