Skip to content

tor-hsservice: Periodically reupload the descriptor.

gabi-250 requested to merge gabi-250/arti:publisher-reuploads into main

According to the spec, the publisher needs to periodically reupload the descriptor.

Specifically, every time a hidden service publishes its descriptor, it also sets up a timer for a random time
between 60 minutes and 120 minutes in the future. When the timer triggers, the hidden service needs to
publish its descriptor again to the responsible HSDirs for that time period. [TODO: Control republish period
using a consensus parameter?]

After each upload_for_time_period(), the publisher now sets a timer as described in the spec, using an UploadReminder with UploadKind::Reuplaod.

Closes #1241 (closed)

Merge request reports