aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-25Teach consdiffmgr to remember two digests: one compressed, one not.Nick Mathewson
2017-04-25Function to convert compression methods to/from strings.Nick Mathewson
2017-04-25Merge branch 'bug21715_031_01_squashed'Nick Mathewson
2017-04-25man: Update Num{Directory,Entry}Guards default valueDavid Goulet
Fixes #21715 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-04-25Add stub function for libor-trace.Alexander Færøy
OS X's ar(1) doesn't allow us to create an archive with no object files. This patch adds a stub file with a stub function in it to make OS X happy again.
2017-04-25Teach cov-exclude to detect runaway LCOV_EXCL_START linesNick Mathewson
Also, fix two instances of runaway LCOV_EXCL_START lines.
2017-04-25Whitespace fixes.Nick Mathewson
2017-04-25Merge branch 'unified_compress_squashed'Nick Mathewson
2017-04-25zlib: Turn UINT_MAX overrun into an error, not an assert.Nick Mathewson
2017-04-25Add a "best compression" flag.Nick Mathewson
2017-04-25Combine all *compress/*uncompress backend function into oneNick Mathewson
Since we have a streaming API for each compression backend, we don't need a non-streaming API for each: we can build a common non-streaming API at the front-end.
2017-04-25Merge branch 'atomic_counters'Nick Mathewson
2017-04-25Merge remote-tracking branch 'dgoulet/bug21293_031_01'Nick Mathewson
2017-04-25More clarification on 13802Nick Mathewson
2017-04-25trace: Add a basic event-tracing infrastructure.David Goulet
This commit adds the src/trace directory containing the basics for our tracing subsystem. It is not used in the code base. The "src/trace/debug.h" file contains an example on how we can map our tor trace events to log_debug(). The tracing subsystem can only be enabled by tracing framework at compile time. This commit introduces the "--enable-tracing-debug" option that will make all "tor_trace()" function be maped to "log_debug()". Closes #13802 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-04-25Use atomic counters for compressor allocation.Nick Mathewson
2017-04-25relay: Change LD_BUG log to LD_PROTOCOL_WARNDavid Goulet
That log statement can be triggered if somebody on the Internet behaves badly which is possible with buggy implementation for instance. Fixes #21293 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-04-25Rename shadowing variable in compress_zlib.c.Alexander Færøy
This patch renames the `compress` parameter of the `tor_zlib_compress_new()` function to `_compress` to avoid shadowing the `compress()` function in zlib.h.
2017-04-25changes file for 21662/21663/21664Nick Mathewson
2017-04-25Merge branch 'ahf_prop278_21662_squashed'Nick Mathewson
2017-04-25Fix newlines in compression headers.Alexander Færøy
See: https://bugs.torproject.org/21662
2017-04-25Remove `tor_compress_memory_level()`.Alexander Færøy
This patch splits up `tor_compress_memory_level()` into static functions in the individual compression backends, which allows us to tune the values per compression backend rather than globally. See: https://bugs.torproject.org/21662
2017-04-25Use switch-statement in tor_{compress,uncompress}.Alexander Færøy
Use a switch-statement in `tor_compress()` and `tor_uncompress()` for the given `compress_method_t` parameter. This allows us to have the compiler detect if we forgot add a handler in these functions for a newly added enumeration value. See: https://bugs.torproject.org/21662
2017-04-25Use `tor_compress_supports_method()` before printing library versions.Alexander Færøy
This patch ensures that Tor checks if a given compression method is supported before printing the version string when calling `tor --library-versions`. Additionally, we use the `tor_compress_supports_method()` to check if a given version is supported for Tor's start-up version string, but here we print "N/A" if a given compression method is unavailable. See: https://bugs.torproject.org/21662
2017-04-25Add API entry-point for getting compression method version numbers.Alexander Færøy
This patch adds `tor_compress_version_str()` and `tor_compress_header_version_str()` to get the version strings of the different compression schema providers. Both functions returns `NULL` in case a given `compress_method_t` is unknown or unsupported. See: https://bugs.torproject.org/21662
2017-04-25Add function to check if a given compression method is supported.Alexander Færøy
This patch adds support for checking if a given `compress_method_t` is supported by the currently running Tor instance using `tor_compress_supports_method()`. See: https://bugs.torproject.org/21662
2017-04-25Add `tor_compress_get_total_allocation()` function.Alexander Færøy
This patch adds the `tor_compress_get_total_allocation()` which returns an approximate number of bytes currently in use by all the different compression backends. See: https://bugs.torproject.org/21662
2017-04-25Display LZMA and Zstandard versions when starting Tor.Alexander Færøy
See: https://bugs.torproject.org/21662
2017-04-25Show liblzma and libzstd versions in `tor --library-versions`.Alexander Færøy
See: https://bugs.torproject.org/21662
2017-04-25Add Zstandard support.Alexander Færøy
See: https://bugs.torproject.org/21662
2017-04-25Add --enable-zstd to our configure script.Alexander Færøy
This patch adds support for enabling support for Zstandard to our configure script. By default, the --enable-zstd option is set to "auto" which means if libzstd is available we'll build Tor with Zstandard support. See: https://bugs.torproject.org/21662
2017-04-25Add LZMA support.Alexander Færøy
See: https://bugs.torproject.org/21662
2017-04-25Add --enable-lzma to our configure script.Alexander Færøy
This patch adds support for enabling support for LZMA to our configure script. By default, the --enable-lzma option is set to "auto" which means if liblzma is available we'll build Tor with LZMA support. See: https://bugs.torproject.org/21662
2017-04-25Use a switch-statement when checking for compression method.Alexander Færøy
This patch changes the way `tor_compress_new()`, `tor_compress_process()`, and `tor_compress_free()` handles different compression methods. This should give us compiler warnings in case an additional compression method is added, but the developer forgets to add handlers in the three aforementioned functions. See https://bugs.torproject.org/21663
2017-04-25Add `compress_zlib.obj` to `src/common/Makefile.nmake`.Alexander Færøy
See https://bugs.torproject.org/21663
2017-04-25Rename the `torgzip` module to `compress`.Alexander Færøy
See https://bugs.torproject.org/21663
2017-04-25Move zlib compression code into its own module.Alexander Færøy
This patch refactors the `torgzip` module to allow us to extend a common compression API to support multiple compression backends. Additionally we move the gzip/zlib code into its own module under the name `compress_zlib`. See https://bugs.torproject.org/21664
2017-04-24Fix implicit conversion warnings in the period_num testsNick Mathewson
2017-04-24Remove changes files that are already merged into 0.3.0.Nick Mathewson
2017-04-24Merge remote-tracking branch 'dgoulet/ticket21980_031_01'Nick Mathewson
2017-04-24Fix some leaks in the consdiffmgr testsNick Mathewson
2017-04-24Fix a signed/unsigned comparison warning on 32-bitNick Mathewson
2017-04-24Merge branch 'consdiffmgr_squashed'Nick Mathewson
2017-04-24Remove a checklist item that was already testedNick Mathewson
The item referred to the cdm_ht_set_status() case where the item was not already in the hashtable. But that already happens naturally when we scan the directory on startup... and we already have a test for that.
2017-04-24consdiffmgr test: do not launch a diff task that is already pendingNick Mathewson
2017-04-24consdiffmgr: tests for consdiffmgr_validate()Nick Mathewson
2017-04-24consdiffmgr: add tests for cdm_entry_get_sha3_valueNick Mathewson
2017-04-24consdiffmgr test: add a test for updating ht on clean/rescan.Nick Mathewson
This brings us back up to ~94% coverage
2017-04-24Expand diff-management test to cover reloading items from diskNick Mathewson
2017-04-24Fix reference leak & handle leak in consensus_diff_worker_replyfnNick Mathewson
Found by previous test.