0.4.5.11 and fix build

This commit is contained in:
Sergey Zhemoitel 2021-12-26 03:46:24 +03:00
parent 66e7503439
commit 7089e161f3

20
tor-fix-build.patch Normal file
View file

@ -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,