diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2021-07-13 12:21:23 +0200 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2021-07-28 13:08:32 +0200 |
| commit | 7e88def0548a92112f8295686c2a12379e4028be (patch) | |
| tree | da944fef2b68ec75131ed2d5523ba1a843189173 /debian/libapt-pkg-dev.install | |
| parent | 121ccd0e0c2612bab9ba5383d5599b54e29e4643 (diff) | |
acquire: Automatically reduce select() timeout as needed
If there is an item with fetchAfter at the top of a queue,
reduce sleep() timeout so we can detect it and start it,
by calling Cycle() on the queue in the next iteration.
For some reasons we have to call select() with a 0s timeout
if we just marked an item as ready. Oh well.
Previous versions of this patch only called global Bump() after a timeout
from select(); this was unfortunately incorrect - it meant that we
never bumped a queue that did not start yet while other queues were
running, potentially significantly delaying retries.
Diffstat (limited to 'debian/libapt-pkg-dev.install')
0 files changed, 0 insertions, 0 deletions
