the program needs a timeout parameter

Bug #1874721 reported by Rolf Leggewie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
auto-apt-proxy (Debian)
Fix Released
Unknown
auto-apt-proxy (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

auto-apt-proxy waits too long if there is no answer on the network.

My apt-cacher-ng is not on localhost, or the gateway but a separate machine on the LAN. Apparently, auto-apt-proxy cannot detect the cache in that case (whereas squid-deb-proxy-client can). This lead to "apt update" hanging for about 10 minutes each time. Please make sure to time out after no more than 2 seconds.

# apt update
[...]14 lines of output from repositories[...]
Reading package lists... Done
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)

Tags: bionic
Revision history for this message
Logan Rosen (logan) wrote :

This bug was fixed in the package auto-apt-proxy - 13.4

---------------
auto-apt-proxy (13.4) unstable; urgency=medium

  [ Julian Andres Klode ]
  * Avoid retries when proving for proxies.
    Pass -o Acquire::Retries=0 to apt-helper, such that apt doesn't retry
    the proxy probing, which now has exponential backoff in 2.3.7
    (Closes: #992147)

  [ Antonio Terceiro ]
  * timeout after 5s when looking `auto-apt-proxy` up.
    If a DNS lookup for the proxy takes too long, we don't to want to use it
    anyway. (Closes: #979132)

 -- Antonio Terceiro <email address hidden> Sun, 22 Aug 2021 20:58:06 -0300

Changed in auto-apt-proxy (Ubuntu):
status: New → Fix Released
Changed in auto-apt-proxy (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.