[pkg-gnupg-maint] Bug#851298: Bug#851298: 10 second delay on first ssh use (sleeps in agent_libgcrypt_progress_cb)

Werner Koch wk at gnupg.org
Mon Jan 16 19:39:37 UTC 2017


On Fri, 13 Jan 2017 20:02, weasel at debian.org said:

> I suspect the callback shouldn't try to sleep if the entropy is being
> read from a non-blocking source, or maybe the callback shouldn't be

The sleeping is done to reqlinguish control to other threads.  Libgcrypt
1.7 unfortunately needs to resort to the progress callback to do that.

Changing the sleep amount to 0 or better by replacing the sleep call
with gpgrt_yield () should be sufficient.


Salam-Shalom,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20170116/0cd9319c/attachment.sig>


More information about the pkg-gnupg-maint mailing list