mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Synchronize less frequently when compressing descriptors
This may improve our compression ratios. fix for 11787
This commit is contained in:
parent
2e1ac274ab
commit
8ecfcf712c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user