[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: use same restart logic for EdDSA
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: use same restart logic for EdDSA and RSA |
Date: |
Thu, 31 Dec 2020 17:38:42 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 75144074 use same restart logic for EdDSA and RSA
75144074 is described below
commit 7514407487ebb0fa63f417cd25abc52fc75d75e1
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Dec 31 17:38:41 2020 +0100
use same restart logic for EdDSA and RSA
---
src/util/crypto_helper_denom.c | 2 +-
src/util/crypto_helper_esign.c | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c
index 31c20753..f455caaa 100644
--- a/src/util/crypto_helper_denom.c
+++ b/src/util/crypto_helper_denom.c
@@ -415,7 +415,7 @@ TALER_CRYPTO_helper_denom_poll (struct
TALER_CRYPTO_DenominationHelper *dh)
{
/* timeout AND not synced => full reconnect */
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Restarting connection to helper, did not come up
properly\n");
+ "Restarting connection to RSA helper, did not come up
properly\n");
do_disconnect (dh);
try_connect (dh);
if (-1 == dh->sock)
diff --git a/src/util/crypto_helper_esign.c b/src/util/crypto_helper_esign.c
index 688afc7d..ca37c59e 100644
--- a/src/util/crypto_helper_esign.c
+++ b/src/util/crypto_helper_esign.c
@@ -373,7 +373,15 @@ TALER_CRYPTO_helper_esign_poll (struct
TALER_CRYPTO_ExchangeSignHelper *esh)
if (esh->synced)
break;
if (! await_read_ready (esh))
- break; /* timeout */
+ {
+ /* timeout AND not synced => full reconnect */
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Restarting connection to EdDSA helper, did not come up
properly\n");
+ do_disconnect (dh);
+ try_connect (dh);
+ if (-1 == dh->sock)
+ return; /* give up */
+ }
continue; /* try again */
}
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: use same restart logic for EdDSA and RSA,
gnunet <=