Hi.

[Tim Retout]
> Although I regret that errors occur more frequently when using tor, I
> don't believe this is one to be fixed in every apt transport.  Apt
> provides the config value "Apt::Acquire::Retries" that should retry
> downloads whether it's HTTP, HTTPS or any other mechanism.

I'll test this approach and see if it help:

  # cat /etc/apt/apt.conf.d/10tor-retry
  Apt::Acquire::Retries "3";
  #

> Unless there is a specific issue that is tor-specific, that can be
> fixed automatically by the transport code (i.e. doesn't require
> restarting the tor daemon?), I think it should be left to that config
> variable.

I doubt restarting the tor daemon is required to recover from the broken
connections.  I believe only a simple reconnect is needed.

> I would, however, accept a patch to mention the above config value in
> the apt-transport-tor documentation - and when that happens, I would
> close this bug.

What about including an apt.conf.d fragment with the package, similar to
the one above?

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to