From e99c5b3b715590340001706a4500688fa8c8fb6e Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 18 Apr 2020 17:21:45 +0200 Subject: [PATCH] morss: more sensible default MAX/LIM values --- morss/morss.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/morss/morss.py b/morss/morss.py index 46c4217..429c89b 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -36,13 +36,15 @@ except ImportError: from urllib.parse import unquote from urllib.parse import urlparse, urljoin, parse_qs -LIM_ITEM = 100 # deletes what's beyond -LIM_TIME = 7 # deletes what's after -MAX_ITEM = 50 # cache-only beyond -MAX_TIME = 7 # cache-only after (in sec) +MAX_ITEM = 5 # cache-only beyond +MAX_TIME = 2 # cache-only after (in sec) + +LIM_ITEM = 10 # deletes what's beyond +LIM_TIME = 2.5 # deletes what's after + DELAY = 10 * 60 # xml cache & ETag cache (in sec) TIMEOUT = 4 # http timeout (in sec) -THREADS = 10 # number of threads (1 for single-threaded) +THREADS = MAX_ITEM # number of threads (1 for single-threaded) DEBUG = False PORT = 8080