diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-16 13:23:41 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-16 13:23:41 +0100 |
commit | 6d820228b66bde749efb4c8af7c97ae33fc6cca5 (patch) | |
tree | c9090d600f34dfc91daf257a88bacdd2bcf41198 /src/util | |
parent | cffefb0b6305655982d409fae9f53b86025300b0 (diff) |
enable auditor in generate-XXX-basedb scripts
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/crypto_helper_denom.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c index 7326f70ff..c61a46f1d 100644 --- a/src/util/crypto_helper_denom.c +++ b/src/util/crypto_helper_denom.c @@ -369,7 +369,7 @@ await_read_ready (struct TALER_CRYPTO_DenominationHelper *dh) }; sigset_t sigmask; struct timespec ts = { - .tv_sec = 5 + .tv_sec = 1 }; int ret; @@ -412,7 +412,15 @@ TALER_CRYPTO_helper_denom_poll (struct TALER_CRYPTO_DenominationHelper *dh) if (dh->synced) break; if (! await_read_ready (dh)) - break; /* timeout */ + { + /* timeout AND not synced => full reconnect */ + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Restarting connection to 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, |