summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-02-18 12:49:33 -0500
committerAlexander Færøy <ahf@torproject.org>2021-08-11 12:51:32 +0000
commit399518da022ea94bd0644082e29012a51aec5697 (patch)
tree3199f87f9fd2ad896545e8fbd364ece0f392f7c2 /src/lib
parent87492154e0a68ae369ea9fc40dcaa037e8f871a4 (diff)
downloadtor-399518da022ea94bd0644082e29012a51aec5697.tar.gz
tor-399518da022ea94bd0644082e29012a51aec5697.zip
relay: Reduce streaming compression ratio from HIGH to LOW
Fixes #40301 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/compress/compress_zstd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/compress/compress_zstd.c b/src/lib/compress/compress_zstd.c
index 45d0d4d602..f0bb22b517 100644
--- a/src/lib/compress/compress_zstd.c
+++ b/src/lib/compress/compress_zstd.c
@@ -49,8 +49,8 @@ memory_level(compression_level_t level)
default:
case BEST_COMPRESSION:
case HIGH_COMPRESSION: return 9;
- case MEDIUM_COMPRESSION: return 8;
- case LOW_COMPRESSION: return 7;
+ case MEDIUM_COMPRESSION: return 3;
+ case LOW_COMPRESSION: return 1;
}
}
#endif /* defined(HAVE_ZSTD) */