diff --git a/tor-fix-build.patch b/tor-fix-build.patch new file mode 100644 index 0000000..39dbb71 --- /dev/null +++ b/tor-fix-build.patch @@ -0,0 +1,20 @@ +*** src/feature/dirclient/dirclient.c.orig 2021-10-06 22:45:19.000000000 +0300 +--- src/feature/dirclient/dirclient.c 2021-12-26 03:13:52.719851014 +0300 +*************** +*** 1959,1966 **** + /* If we're pretty sure that we have a compressed directory, and + * we didn't manage to uncompress it, then warn and bail. */ + if (!plausible && !new_body) { +! const int LOG_INTERVAL = 3600; +! static ratelim_t warning_limit = RATELIM_INIT(LOG_INTERVAL); + log_fn_ratelim(&warning_limit, LOG_WARN, LD_HTTP, + "Unable to decompress HTTP body (tried %s%s%s, on %s).", + description1, +--- 1959,1965 ---- + /* If we're pretty sure that we have a compressed directory, and + * we didn't manage to uncompress it, then warn and bail. */ + if (!plausible && !new_body) { +! static ratelim_t warning_limit = RATELIM_INIT(60 * 60); + log_fn_ratelim(&warning_limit, LOG_WARN, LD_HTTP, + "Unable to decompress HTTP body (tried %s%s%s, on %s).", + description1,