Alexander Færøy
|
8d730af0f7
Remove old consensus fetching code from handle_get_current_consensus().
|
vor 7 Jahren |
Alexander Færøy
|
fade313ba3
Fix too wide line from `make check-spaces`.
|
vor 7 Jahren |
Alexander Færøy
|
ae33deb91d
Check for best consensus when no consensusdiff was found.
|
vor 7 Jahren |
Nick Mathewson
|
7591518d16
Copy valid/fresh-until and signatories values into diffs.
|
vor 7 Jahren |
Nick Mathewson
|
fd1190581d
Store fresh/valid-until and signatories values on all consensus objects.
|
vor 7 Jahren |
Nick Mathewson
|
dcc533fb13
Implement functions to expose valid/fresh-until and voters
|
vor 7 Jahren |
Nick Mathewson
|
2f06345db3
Move stub accessor functions a level higher, to consdiffmgr
|
vor 7 Jahren |
Alexander Færøy
|
ef2a62b2ff
Fetch the current consensus from the conscache subsystem.
|
vor 7 Jahren |
Alexander Færøy
|
363f4b8db5
Add stub functions for querying metadata about the consensus.
|
vor 7 Jahren |
Alexander Færøy
|
64116ab97f
Fix tautological constant out-of-range comparison warnings.
|
vor 7 Jahren |
Alexander Færøy
|
a1e8ef0076
Fix DoubleNL warning from `make check-spaces`.
|
vor 7 Jahren |
Nick Mathewson
|
077d3085ec
actually enable background compresion for consensuses
|
vor 7 Jahren |
Nick Mathewson
|
db370bb8a8
Test fix: expect old consensuses to be deleted if not deflate-compressed
|
vor 7 Jahren |
Nick Mathewson
|
30dfb36148
consdiffmgr: Reload latest consensus entries on start.
|
vor 7 Jahren |
Nick Mathewson
|
8100305e71
consdiffmgr: expose cached consensuses
|
vor 7 Jahren |
Nick Mathewson
|
7b0dcf5c4a
Cleanup logic: only retain zlib-compressed consensuses
|
vor 7 Jahren |
Nick Mathewson
|
151cd121a2
consdiffmgr: compress incoming consensuses in the background
|
vor 7 Jahren |
Nick Mathewson
|
6da31ec484
consdiffmgr: Extract the code for compressing and storing
|
vor 7 Jahren |
Alexander Færøy
|
7a3efe25d9
Use different preferences for compression methods when streaming.
|
vor 7 Jahren |
Alexander Færøy
|
141f6e3211
Add client_meth_pref array to define client compression preference.
|
vor 7 Jahren |
Alexander Færøy
|
59d17ca2bb
Fix indentation when using the ternary operator in handle_get_status_vote().
|
vor 7 Jahren |
Alexander Færøy
|
ef187bc280
Use compression_method_get_human_name() in connection_dir_client_reached_eof()
|
vor 7 Jahren |
Alexander Færøy
|
3a05687c6d
Add API for getting human readable descriptions of a compress_method_t
|
vor 7 Jahren |
Alexander Færøy
|
f8218b5ada
Use compression_method_get_by_name() instead of explicit checks.
|
vor 7 Jahren |
Alexander Færøy
|
cf2f7a1bea
Decide compression method in the various handle_* functions().
|
vor 7 Jahren |
Alexander Færøy
|
a3a31fa120
Send "Accept-Encoding" to directory servers.
|
vor 7 Jahren |
Alexander Færøy
|
6305637197
Use tor_compress_supports_method() instead of constants.
|
vor 7 Jahren |
Alexander Færøy
|
61b6de5906
Handle Zstandard and LZMA in our check for correct guessed compression.
|
vor 7 Jahren |
Alexander Færøy
|
fbef257c43
Handle x-zstd and x-tor-lzma in parse_http_response().
|
vor 7 Jahren |
Alexander Færøy
|
ca632144e5
Use dir_compressed(_len) instead of dir_z(_len).
|
vor 7 Jahren |