Skip to main content

RETAIN_DATA_AFTER_LAST_USE

Constant RETAIN_DATA_AFTER_LAST_USE 

Source
const RETAIN_DATA_AFTER_LAST_USE: Duration;
Expand description

How long to retain cached data about a hidden service

This is simply to reclaim space, not for correctness. So we only check this during housekeeping, not operation.

The starting point for this interval is the last time we used the data, or a circuit derived from it.

Note that this is a maximum for the length of time we will retain a descriptor; HS descriptors’ lifetimes (as declared in the descriptor) are honoured; but that’s done by the code in connect.rs, not here.

We’re not sure this is the right value. See https://gitlab.torproject.org/tpo/core/arti/-/issues/916