proxywatchd: make checktime constants configurable
this requires only saving the last checked time in `tested`. you can run the following sql statement to update the existing values in the database: sqlite3 proxylist.sqlite \ "update proxylist set tested=tested-(1800+(failed*3600)) where failed < 6"
This commit is contained in:
@@ -17,6 +17,8 @@ class Config(ComboParser):
|
||||
self.add_item('watchd', 'submit_after', int, 200, 'min. number of tested proxies for DB write', False)
|
||||
self.add_item('watchd', 'debug', bool, False, 'whether to print additional debug info', False)
|
||||
self.add_item('watchd', 'use_ssl', bool, False, 'whether to use SSL and port 6697 to connect to targets (slower)', False)
|
||||
self.add_item('watchd', 'checktime', int, 1800, 'base checking interval for proxies in db in seconds', False)
|
||||
self.add_item('watchd', 'perfail_checktime', int, 3600, 'additional checking interval for proxies in db in seconds per experienced failure', False)
|
||||
|
||||
self.add_item('ppf', 'search', bool, True, 'whether to use searx search engine to find new proxy lists', False)
|
||||
self.add_item('ppf', 'timeout', float, 15, 'timeout for blocking operations (connect/recv/...) for proxy checks in seconds', False)
|
||||
|
||||
Reference in New Issue
Block a user