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.

  • Philipp Winter's avatar
    Fix bug where test cache timeout was ignored. · 5a0e7d48
    Philipp Winter authored
    When bridgestrap read its cache from disk, it wouldn't only read the
    cache entries but also the cache timeout, overriding whatever we
    provided over the command line.  In other words, if bridgestrap saved a
    cache whose timeout was set to 24h, and we later restart bridgestrap
    with a given cache timeout of 18h, it would use 24h because that's what
    it read from disk.
    
    This patch fixes this bug in two ways: 1) we no longer write the cache
    timeout to disk and 2) we set the cache timeout after reading the cached
    entries from disk.
    5a0e7d48
cache_test.go 4.93 KB