GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still and

Verified Commit 0db35d80 authored by Philipp Winter's avatar Philipp Winter
Browse files

Reduce default cache timeout to 18 hours.

It's important that bridgestrap's cache timeout is less than or equal to
rdsys's pluggable transport expiry time.  If bridgestrap expires cache
entries after 24 hours and rdsys wants to re-test bridges after 18
hours, then there's a worst case of a 6 hour window within which
bridgestrap will refuse to re-test rdsys's bridges because they're still
in the cache.  Rdsys will keep bothering bridgestrap because it wants a
more recent test result.

This patch reduces bridgestrap's default cache timeout to 18 hours,
which is the number of hours after which bridges should re-upload their
descriptors to the bridge authority:
parent 5683956c
......@@ -128,7 +128,7 @@ func main() {
flag.StringVar(&torBinary, "tor", "tor", "Path to tor executable.")
flag.StringVar(&logFile, "log", "", "File to write logs to.")
flag.IntVar(&testTimeout, "test-timeout", 60, "Test timeout in seconds.")
flag.IntVar(&cacheTimeout, "cache-timeout", 24, "Cache timeout in hours.")
flag.IntVar(&cacheTimeout, "cache-timeout", 18, "Cache timeout in hours.")
if showVersion {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment