diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-05-07 10:27:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-07 10:27:52 -0400 |
commit | 8ecfcf712c4e673687e4904e0a73e5c70b1a7eeb (patch) | |
tree | 92ac78fdf08b3d55b9303be4634e8cc0130bacc1 /src/common/torgzip.c | |
parent | 2e1ac274abed4127a6a30b753297166caf59feb1 (diff) | |
download | tor-8ecfcf712c4e673687e4904e0a73e5c70b1a7eeb.tar.gz tor-8ecfcf712c4e673687e4904e0a73e5c70b1a7eeb.zip |
Synchronize less frequently when compressing descriptors
This may improve our compression ratios.
fix for 11787
Diffstat (limited to 'src/common/torgzip.c')
-rw-r--r-- | src/common/torgzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |