Skip to content
Snippets Groups Projects
  1. Feb 01, 2013
    • Nick Mathewson's avatar
      Rename log() to tor_log() for logging · a141430e
      Nick Mathewson authored
      This is meant to avoid conflict with the built-in log() function in
      math.h.  It resolves ticket 7599.  First reported by dhill.
      
      This was generated with the following perl script:
      
       #!/usr/bin/perl -w -i -p
      
       s/\blog\(LOG_(ERR|WARN|NOTICE|INFO|DEBUG)\s*,\s*/log_\L$1\(/g;
      
       s/\blog\(/tor_log\(/g;
      a141430e
  2. Jan 31, 2013
  3. Jan 30, 2013
  4. Jan 29, 2013
  5. Jan 24, 2013
  6. Jan 23, 2013
  7. Jan 22, 2013
  8. Jan 21, 2013
  9. Jan 20, 2013
  10. Jan 19, 2013
    • Nick Mathewson's avatar
      c71b7db8
    • Mike Perry's avatar
      Bug 7802 changes file. · 38c7195a
      Mike Perry authored
      38c7195a
    • Mike Perry's avatar
      a678ff9e
    • Mike Perry's avatar
      Remove a source of error during path bias scaling · d80b881a
      Mike Perry authored
      If any circuits were opened during a scaling event, we were scaling attempts
      and successes by different amounts. This leads to rounding error.
      
      The fix is to record how many circuits are in a state that hasn't been fully
      counted yet, and subtract that before scaling, and add it back afterwords.
      d80b881a
    • Mike Perry's avatar
      Don't immediately count cannibalized circs as used. · a2db17a1
      Mike Perry authored
      Since they use RELAY_EARLY (which can be seen by all hops on the path),
      it's not safe to say they actually count as a successful use.
      
      There are also problems with trying to allow them to finish extending due to
      the circuit purpose state machine logic. It is way less complicated (and
      possibly more semantically coherent) to simply wait until we actually try to
      do something with them before claiming we 'used' them.
      
      Also, we shouldn't call timed out circuits 'used' either, for semantic
      consistency.
      a2db17a1
    • Mike Perry's avatar
      Roll back the path_state for circs if we detatch a stream. · 24b9b9f7
      Mike Perry authored
      An adversary could let the first stream request succeed (ie the resolve), but
      then tag and timeout the remainder (via cell dropping), forcing them on new
      circuits.
      
      Rolling back the state will cause us to probe such circuits, which should lead
      to probe failures in the event of such tagging due to either unrecognized
      cells coming in while we wait for the probe, or the cipher state getting out
      of sync in the case of dropped cells.
      24b9b9f7
    • Mike Perry's avatar
      Implement Path use bias accounting. · e13e3022
      Mike Perry authored
      Path use bias measures how often we can actually succeed using the circuits we
      actually try to use. It is a subset of path bias accounting, but it is
      computed as a separate statistic because the rate of client circuit use may
      vary depending on use case.
      e13e3022
  11. Jan 18, 2013
  12. Jan 17, 2013
Loading