Twiddle constants wrt uploading hidden service descriptors.
svn:r9694
uptime and bandwidth cutoffs.
- Stop listing hibernating servers in the v1 directory.
+ o Minor bugfixes (hidden services):
+ - Upload hidden service descriptors slightly less often, to reduce
+ load on authorities.
+
o Minor bugfixes (other):
- Fix an assert that could trigger if a controller quickly set then
cleared EntryNodes. (Bug found by Udo van den Heuvel.)
/** Lowest allowable value for RendPostPeriod; if this is too low, hidden
* services can overload the directory system. */
-#define MIN_REND_POST_PERIOD (5*60)
+#define MIN_REND_POST_PERIOD (10*60)
/** Highest allowable value for RendPostPeriod. */
#define MAX_DIR_PERIOD (MIN_ONION_KEY_LIFETIME/2)
}
if (service->next_upload_time < now ||
(service->desc_is_dirty &&
- service->desc_is_dirty < now-5)) {
+ service->desc_is_dirty < now-30)) {
/* if it's time, or if the directory servers have a wrong service
- * descriptor and ours has been stable for 5 seconds, upload a
+ * descriptor and ours has been stable for 30 seconds, upload a
* new one of each format. */
upload_service_descriptor(service, 0);
service->next_upload_time = now + rendpostperiod;