Skip to main content

UPLOAD_RATE_LIM_THRESHOLD

Constant UPLOAD_RATE_LIM_THRESHOLD 

Source
const UPLOAD_RATE_LIM_THRESHOLD: Duration;
Expand description

The upload rate-limiting threshold.

Before initiating an upload, the reactor checks if the last upload was at least UPLOAD_RATE_LIM_THRESHOLD seconds ago. If so, it uploads the descriptor to all HsDirs that need it. If not, it schedules the upload to happen UPLOAD_RATE_LIM_THRESHOLD seconds from the current time.