mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +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;
|
state->stream.avail_out = (unsigned int)*out_len;
|
||||||
|
|
||||||
if (state->compress) {
|
if (state->compress) {
|
||||||
err = deflate(&state->stream, finish ? Z_FINISH : Z_SYNC_FLUSH);
|
err = deflate(&state->stream, finish ? Z_FINISH : Z_NO_FLUSH);
|
||||||
} else {
|
} else {
|
||||||
err = inflate(&state->stream, finish ? Z_FINISH : Z_SYNC_FLUSH);
|
err = inflate(&state->stream, finish ? Z_FINISH : Z_SYNC_FLUSH);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user