aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-10-11 14:32:32 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-11 14:32:32 +0200
commit66573865e1da2b23ad856d70088c23ec7f4d4922 (patch)
treea62ce857fb00c5ce2041cf20a11377f31ed41aec /src/util
parent70ff10286ba94b0dbcb880a79222ee1bc06a5aea (diff)
generate 502 on secmod unavailable instead of 200 with bad public key; more logging
Diffstat (limited to 'src/util')
-rw-r--r--src/util/crypto_helper_denom.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c
index 4f8c921f0..f8e77ae4f 100644
--- a/src/util/crypto_helper_denom.c
+++ b/src/util/crypto_helper_denom.c
@@ -441,7 +441,11 @@ TALER_CRYPTO_helper_denom_poll (struct TALER_CRYPTO_DenominationHelper *dh)
try_connect (dh);
if (-1 == dh->sock)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Cannot poll denom helper: socket down\n");
return; /* give up */
+ }
while (1)
{
ret = recv (dh->sock,
@@ -464,10 +468,18 @@ TALER_CRYPTO_helper_denom_poll (struct TALER_CRYPTO_DenominationHelper *dh)
"Restarting connection to RSA helper, did not come up properly\n");
do_disconnect (dh);
if (0 == retry_limit)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Cannot poll denom helper: retry limit reached\n");
return; /* give up */
+ }
try_connect (dh);
if (-1 == dh->sock)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Cannot poll denom helper: failed to connect\n");
return; /* give up */
+ }
retry_limit--;
flag = MSG_DONTWAIT;
}