From 71fb3800eee9099b56e4ed5f97dbbef51fa5f8e7 Mon Sep 17 00:00:00 2001 From: Username Date: Tue, 23 Dec 2025 17:22:52 +0100 Subject: [PATCH] config: add gevent dependency and min_threads option - requirements.txt: add gevent for cooperative concurrency - config.py: add min_threads setting for thread scaling --- config.py | 1 + requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 61720c0..ae5ab61 100644 --- a/config.py +++ b/config.py @@ -86,6 +86,7 @@ class Config(ComboParser): self.add_item(section, 'outage_threshold', float, 4.0, 'mininum success percentage required to not drop check results', False) self.add_item(section, 'max_fail', int, 5, 'number of fails after which a proxy is considered dead', False) self.add_item(section, 'threads', int, 10, 'number of threads watchd uses to check proxies', True) + self.add_item(section, 'min_threads', int, 0, 'minimum threads (0 = auto: threads/4)', False) self.add_item(section, 'timeout', int, 15, 'timeout for blocking operations (connect/recv/...) for proxy checks in seconds', False) self.add_item(section, 'submit_after', int, 200, 'min. number of tested proxies for DB write', False) self.add_item(section, 'debug', bool, False, 'whether to print additional debug info', False) diff --git a/requirements.txt b/requirements.txt index fa50b76..3e9e9f3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ beautifulsoup4 pyasn -IP2Location \ No newline at end of file +IP2Location +gevent