"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/feature/dirclient/dirclient.c" between
tor-0.4.6.5.tar.gz and tor-0.4.6.6.tar.gz

About: Tor is an anonymous Internet communication system - a network of virtual tunnels that allows people and groups to improve their privacy and security on the Internet.

dirclient.c  (tor-0.4.6.5):dirclient.c  (tor-0.4.6.6)
skipping to change at line 1876 skipping to change at line 1876
if (tor_compress_supports_method(guessed) && if (tor_compress_supports_method(guessed) &&
compression != guessed) { compression != guessed) {
tor_uncompress(&new_body, &new_len, body, body_len, guessed, tor_uncompress(&new_body, &new_len, body, body_len, guessed,
!allow_partial, LOG_INFO); !allow_partial, LOG_INFO);
tried_both = 1; tried_both = 1;
} }
/* If we're pretty sure that we have a compressed directory, and /* If we're pretty sure that we have a compressed directory, and
* we didn't manage to uncompress it, then warn and bail. */ * we didn't manage to uncompress it, then warn and bail. */
if (!plausible && !new_body) { if (!plausible && !new_body) {
const int LOG_INTERVAL = 3600; static ratelim_t warning_limit = RATELIM_INIT(60 * 60);
static ratelim_t warning_limit = RATELIM_INIT(LOG_INTERVAL);
log_fn_ratelim(&warning_limit, LOG_WARN, LD_HTTP, log_fn_ratelim(&warning_limit, LOG_WARN, LD_HTTP,
"Unable to decompress HTTP body (tried %s%s%s, on %s).", "Unable to decompress HTTP body (tried %s%s%s, on %s).",
description1, description1,
tried_both?" and ":"", tried_both?" and ":"",
tried_both?description2:"", tried_both?description2:"",
connection_describe(TO_CONN(conn))); connection_describe(TO_CONN(conn)));
rv = -1; rv = -1;
goto done; goto done;
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)