1. 21 Oct, 2019 1 commit
    • Roger Dingledine's avatar
      respect accountingmax during soft hibernation · a7ccd9a9
      Roger Dingledine authored
      Relays now respect their AccountingMax bandwidth again. When relays
      entered "soft" hibernation (which typically starts when we've hit
      90% of our AccountingMax), we had stopped checking whether we should
      enter hard hibernation. Soft hibernation refuses new connections and
      new circuits, but the existing circuits can continue, meaning that
      relays could have exceeded their configured AccountingMax.
      This commit rolls back some of the cpu-saving fixes, where we tried
      to avoid calling so many of our events while we're off the network.
      That's because PERIODIC_EVENT_FLAG_NEED_NET checks net_is_disabled(),
      which returns true even if we're only in soft hibernation.
      Fixes bug 32108; bugfix on
  2. 16 Jan, 2019 2 commits
  3. 17 Dec, 2018 2 commits
  4. 13 Dec, 2018 1 commit
    • Nick Mathewson's avatar
      Change interaction between dormant mode and clock jumps. · b5c04173
      Nick Mathewson authored
      When the clock jumps, and we have a record of last user activity,
      adjust that record.  This way if I'm inactive for 10 minutes and
      then the laptop is sleeping for an hour, I'll still count as having
      been inactive for 10 minutes.
      Previously, we treat every jump as if it were activity, which is
      ridiculous, and would prevent a Tor instance with a jumpy clock from
      ever going dormant.
  5. 04 Dec, 2018 1 commit
  6. 28 Nov, 2018 1 commit
  7. 26 Nov, 2018 3 commits
  8. 17 Nov, 2018 1 commit
  9. 15 Nov, 2018 15 commits
  10. 14 Nov, 2018 1 commit
  11. 11 Nov, 2018 1 commit
  12. 16 Oct, 2018 1 commit
  13. 27 Sep, 2018 3 commits
    • Nick Mathewson's avatar
      Always initialize the periodic events list. · d0b2b5a2
      Nick Mathewson authored
      Various places in our code try to activate these events or check
      their status, so we should make sure they're initialized as early as
      possible.  Fixes bug 27861; bugfix on
    • Nick Mathewson's avatar
      Split geoip from geoip-related stats. · f403af22
      Nick Mathewson authored
      This commit just moves the code to two separate files. The geoip
      code still has a few needless dependencies on core/* and features/*.
    • Nick Mathewson's avatar
      Move the predicted ports code out of rephist.c · 241c1505
      Nick Mathewson authored
      It differs from the rest of the rephist code in that it's actually
      necessary for Tor to operate, so it should probably go somewhere
      else.  I'm not sure where yet, so I'll leave it in the same
      directory, but give it its own file.
  14. 25 Sep, 2018 5 commits
  15. 22 Sep, 2018 1 commit
  16. 21 Sep, 2018 1 commit