Skip to content
Snippets Groups Projects
  1. Jan 15, 2021
  2. Jan 13, 2021
  3. Jan 12, 2021
  4. Jan 11, 2021
  5. Jan 10, 2021
  6. Dec 21, 2020
    • David Goulet's avatar
      Merge branch 'maint-0.4.5' · e7da6810
      David Goulet authored
      e7da6810
    • David Goulet's avatar
      relay: Log address suggested by directory authorities · aae9a05a
      David Goulet authored
      
      If we get an address suggestion from a directory authority and we have no
      address configured or discovered, log it at notice level so the operator can
      learn what address will be used by Tor.
      
      Fixes #40201
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      aae9a05a
    • Nick Mathewson's avatar
      Merge branch 'maint-0.4.5' · 43b38805
      Nick Mathewson authored
      43b38805
    • Nick Mathewson's avatar
      ad00da66
    • Nick Mathewson's avatar
      Merge branch 'mr_240_squashed' · cce7d1ed
      Nick Mathewson authored
      cce7d1ed
    • David Goulet's avatar
      test: Fix memleak in test/load_stats_file · f4cbcde2
      David Goulet authored and Nick Mathewson's avatar Nick Mathewson committed
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      f4cbcde2
    • Karsten Loesing's avatar
      Fix timestamp parser in new load_stats_file. · 5dd6304f
      Karsten Loesing authored and Nick Mathewson's avatar Nick Mathewson committed
      The previous parser only considered stats files _starting_ with the
      timestamp tag, not stats files having the timestamp tag in a later
      position. While this applies to all current stats files, a future
      stats file might look differently. Better to fix the function now than
      be surprised in another 9 years from now.
      
      This commit also adds a test case for such future stats, and it fixes
      stats file paths in newly added unit tests.
      5dd6304f
    • David Goulet's avatar
      relay: Report the entire content of a stats file · c934fced
      David Goulet authored and Nick Mathewson's avatar Nick Mathewson committed
      
      It turns out that 9 years ago, we stopped appending data into stats file and
      rather overwrite everytime we have new stats (see commit
      a6a127c8)
      
      The load_stats_file() function was still thinking that we could have the same
      line many times in the file which turns out to be false since 9 years ago.
      However, that did not cause problem until IPv6 connection stats came along
      which introduced a new line in conn-stats: "ipv6-conn-bi-direct ...".
      
      Before, that file contained a single line starting with the tag
      "conn-bi-direct".  That very tag appears also in the IPv6 tag (see above) so
      the load_stats_file() function would consider that the IPv6 line as the last
      tag to be appeneded to the file and fail to report the line above (for IPv4).
      It would actually truncate the IPv6 line and report it (removing the "ipv6-"
      part).
      
      In other words, "conn-bi-direct" was not reported and instead
      "ipv6-conn-bi-direct" was used without the "ipv6-" part.
      
      This commit refactors the entire function so that now it looks for a
      "timestamp tag" to validate and then if everything is fine, returns the entire
      content of the file. The refactor simplifies the function, adds logging in
      case of failures and modernize it in terms of coding standard.
      
      Unit tests are also added that makes sure the loaded content matches the
      entire file if timestamp validation passes.
      
      Fixes #40226
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      c934fced
  7. Dec 18, 2020
  8. Dec 17, 2020
Loading