Opened 3 years ago

Last modified 3 years ago

#21717 needs_information defect

be more data plan friendly by setting DirCache 0 when possible

Reported by: anstein Owned by: n8fr8
Priority: Medium Milestone:
Component: Applications/Orbot Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

The default of "DirCache 1" causes all (two) consensus versions to be downloaded when the typical client use on a mobile phone only requires one version.
Either set DirCache automatically depending on the given configuration options or add a GUI option with a default of 0.
Note that most users of orbot will probably not thoroughly read the orbot man page, have a look at the source code and then use the custom torrc option, thus superfluous data will be downloaded which is not so nice with a mobile data plan.

Child Tickets

Change History (1)

comment:1 in reply to:  description Changed 3 years ago by teor

Status: newneeds_information
Type: enhancementdefect

Replying to anstein:

The default of "DirCache 1" causes all (two) consensus versions to be downloaded when the typical client use on a mobile phone only requires one version.

DirCache is documented to only apply to directory servers:

DIRECTORY SERVER OPTIONS
       The following options are useful only for directory servers (that is,
       if DirPort is non-zero):
...
       DirCache 0|1

It actually applies to most relays (see #21720).

Is Orbot running a relay or directory server?

Either set DirCache automatically depending on the given configuration options or add a GUI option with a default of 0.
Note that most users of orbot will probably not thoroughly read the orbot man page, have a look at the source code and then use the custom torrc option, thus superfluous data will be downloaded which is not so nice with a mobile data plan.

Have you confirmed this issue by looking at the filesystem?
If so, what files are present?

When I start a recent tor client on my desktop, I see the following downloaded directory files:

cached-certs
cached-microdesc-consensus
cached-microdescs
cached-microdescs.new

Do you see these files?
(They are the extra files downloaded by directory servers.)

cached-consensus
cached-descriptors
cached-descriptors.new
Note: See TracTickets for help on using tickets.