Home GnuPG
Diffusion GnuPG 3cccd5a83b96

kbx,w32: Use shorter retry intervals for keybox_file_rename.
3cccd5a83b96Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

kbx,w32: Use shorter retry intervals for keybox_file_rename.

* kbx/keybox-util.c (keybox_file_rename): Restart retry intervals
after 800ms.

The common use case is that the process waiting for a rename does an
import while another process does a key listing with only short lock
periods. Thus it does not make sense to set the final backoff time to
8s. It would actually be okay to retry every 100ms but that would
spill the console with "waiting..." messages. This change prints the
waiting message only every 1.5s.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 15 2016, 8:15 AM
Parents
rG663c5d129a8f: w32: Fix deadlock introduced by keybox_file_rename.
Branches
Unknown
Tags
Unknown

Event Timeline