Add config to enable keepalive/persistent connections

This commit is contained in:
Justin Li
2018-09-09 09:01:53 -04:00
parent 21f500c93e
commit 20edf7a136
3 changed files with 32 additions and 2 deletions

View File

@@ -53,6 +53,12 @@ config:
# Disabling this should increase performance/decrease load.
enable_request_timing: false
# When true, persistent connections will be allowed. Generally this is not
# useful for a public tracker, but helps performance in some cases (use of
# a reverse proxy, or when there are few clients issuing many requests).
enable_keepalive: false
idle_timeout: 30s
# Whether to listen on /announce.php and /scrape.php in addition to their
# non-.php counterparts.
# This is an option for compatibility with (very) old clients or otherwise