GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

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:
https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt?id=c2a584144330239d6aa032b0acfb8b5ba26719fb#n369
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.")
flag.Parse()
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