From: Nick Mathewson Date: Wed, 7 May 2014 14:27:30 +0000 (-0400) Subject: Synchronize less frequently when compressing descriptors X-Git-Tag: tor-0.2.6.1-alpha~194^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ecfcf712c4e673687e4904e0a73e5c70b1a7eeb;p=thirdparty%2Ftor.git Synchronize less frequently when compressing descriptors This may improve our compression ratios. fix for 11787 --- diff --git a/src/common/torgzip.c b/src/common/torgzip.c index 15451ee30d..239cab9cac 100644 --- a/src/common/torgzip.c +++ b/src/common/torgzip.c @@ -472,7 +472,7 @@ tor_zlib_process(tor_zlib_state_t *state, state->stream.avail_out = (unsigned int)*out_len; if (state->compress) { - err = deflate(&state->stream, finish ? Z_FINISH : Z_SYNC_FLUSH); + err = deflate(&state->stream, finish ? Z_FINISH : Z_NO_FLUSH); } else { err = inflate(&state->stream, finish ? Z_FINISH : Z_SYNC_FLUSH); }