Opened 6 years ago

Closed 4 years ago

#9351 closed enhancement (wontfix)

Cache downloaded descriptors to disk

Reported by: atagar Owned by: atagar
Priority: High Milestone:
Component: Core Tor/Stem Version:
Severity: Normal Keywords: descriptor
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Our remote descriptor module is pretty slick, but would be even better if it cached the descriptors it downloaded to disks. This would prevent repeated calls from needlessly re-downloading descriptors we've already retrieved.

Caching and retrieving the descriptors is trivial. The tricky bit is to know when the cached contents should be invalidated.

Child Tickets

Change History (2)

comment:1 Changed 6 years ago by atagar

From Karsten...

Consensuses and votes contain these lines:

valid-after 2013-09-25 13:00:00
fresh-until 2013-09-25 14:00:00
valid-until 2013-09-25 16:00:00

You could invalidate consensuses and votes after fresh-until.  Checking
when a server descriptor or extra-info descriptor is not used anymore is
slightly more difficult and probably requires looking at dir-spec.txt or
the code.  (We can move this discussion to the ticket.  Feel free to
paste this there if it's useful.)

comment:2 Changed 4 years ago by atagar

Resolution: wontfix
Severity: Normal
Status: newclosed

Honestly after years of using this module I've never come across a situation where this would've been useful. I can see how it could, but until we have real-life application probably not worth the effort.

Note: See TracTickets for help on using tickets.