summaryrefslogtreecommitdiff
path: root/src/util/crypto_helper_denom.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-07 19:02:54 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-07 19:02:54 +0200
commit1eba4f5e6290833a15a1a157eb7d079e08d45a4e (patch)
treec2f0ffd6f3675a1084329fa7ecaa4edcb3222a4a /src/util/crypto_helper_denom.c
parent8a60e6b62f173c1148686572e72ad552c3808325 (diff)
downloadexchange-1eba4f5e6290833a15a1a157eb7d079e08d45a4e.tar.gz
exchange-1eba4f5e6290833a15a1a157eb7d079e08d45a4e.tar.bz2
exchange-1eba4f5e6290833a15a1a157eb7d079e08d45a4e.zip
reduce retries and timeout
Diffstat (limited to 'src/util/crypto_helper_denom.c')
-rw-r--r--src/util/crypto_helper_denom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c
index 168699b4e..4f8c921f0 100644
--- a/src/util/crypto_helper_denom.c
+++ b/src/util/crypto_helper_denom.c
@@ -398,19 +398,19 @@ handle_mt_purge (struct TALER_CRYPTO_DenominationHelper *dh,
* Wait until the socket is ready to read.
*
* @param dh helper to wait for
- * @return false on timeout (after 5s)
+ * @return false on timeout (after 1s)
*/
static bool
await_read_ready (struct TALER_CRYPTO_DenominationHelper *dh)
{
- /* wait for reply with 5s timeout */
+ /* wait for reply with 1s timeout */
struct pollfd pfd = {
.fd = dh->sock,
.events = POLLIN
};
sigset_t sigmask;
struct timespec ts = {
- .tv_sec = 5
+ .tv_sec = 1
};
int ret;
@@ -434,7 +434,7 @@ TALER_CRYPTO_helper_denom_poll (struct TALER_CRYPTO_DenominationHelper *dh)
{
char buf[UINT16_MAX];
ssize_t ret;
- unsigned int retry_limit = 10;
+ unsigned int retry_limit = 3;
const struct GNUNET_MessageHeader *hdr
= (const struct GNUNET_MessageHeader *) buf;
int flag = MSG_DONTWAIT;