Package: lockfile-progs
Version: 0.1.17
Severity: normal

Dear Maintainer,

The lockfile-progs(1) man page states:

-r retry-count, --retry retry-count
  Try to lock filename retry-count times before giving up.  Each attempt
  will be delayed a bit longer than the last (in 5 second increments)
  until reaching a maximum delay of one minute between retries.  If
  retry-count is unspecified, the default is 9 which will give up after
  180 seconds (3 minutes) if all 9 lock attempts fail.

The default value of 9 in fact results in a timeout of 3m45s (225s). A
retry-count of 8 would lead to a timeout of 180s. Either the man page
or the default retry count should be changed so that the times line up.

The times I have calculated by crude means using LibreOffice Calc are:

Retry   Total wait
1       5
2       15
3       30
4       50
5       75
6       105
7       140
8       180
9       225
10      275
11      330

After 11, adding 1 to the retry counter increments the total wait by
60s, so for ~30mins wait (1830s, or 30m30s) the value should be 36.
Alternatively, for times over 6 minutes, take the total desired wait
time in minutes and add 5 to wait for 30s under the desired time, or 6
for 30s over the desired time.

HTH,
Chris

-- System Information:
Debian Release: 7.5
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lockfile-progs depends on:
ii  libc6         2.13-38+deb7u1
ii  liblockfile1  1.09-5

lockfile-progs recommends no packages.

lockfile-progs suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to