diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-26 09:29:58 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-27 21:40:13 -0400 |
commit | 466e9140888f0a6a504dc642a0426bd2352f0490 (patch) | |
tree | db42394e7689a862c4c792298b83b4747c6b007e | |
parent | ab73bda0604dccd899061f338122ed7f9faf8c4f (diff) | |
download | tor-466e9140888f0a6a504dc642a0426bd2352f0490.tar.gz tor-466e9140888f0a6a504dc642a0426bd2352f0490.zip |
Lower the file limit in consdiffmgr, to support seccomp2
-rw-r--r-- | src/or/consdiffmgr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/consdiffmgr.c b/src/or/consdiffmgr.c index 160dcafd81..fb09d21ef8 100644 --- a/src/or/consdiffmgr.c +++ b/src/or/consdiffmgr.c @@ -101,7 +101,10 @@ static HT_HEAD(cdm_diff_ht, cdm_diff_t) cdm_diff_ht = HT_INITIALIZER(); */ static consdiff_cfg_t consdiff_cfg = { /* .cache_max_age_hours = */ 24 * 90, - /* .cache_max_num = */ 1440 + // XXXX I'd like to make this number bigger, but it interferes with the + // XXXX seccomp2 syscall filter, which tops out at BPF_MAXINS (4096) + // XXXX rules. + /* .cache_max_num = */ 128 }; static int consensus_diff_queue_diff_work(consensus_cache_entry_t *diff_from, |