aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_helper_denom.c
diff options
context:
space:
mode:
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,
398 * Wait until the socket is ready to read. 398 * Wait until the socket is ready to read.
399 * 399 *
400 * @param dh helper to wait for 400 * @param dh helper to wait for
401 * @return false on timeout (after 5s) 401 * @return false on timeout (after 1s)
402 */ 402 */
403static bool 403static bool
404await_read_ready (struct TALER_CRYPTO_DenominationHelper *dh) 404await_read_ready (struct TALER_CRYPTO_DenominationHelper *dh)
405{ 405{
406 /* wait for reply with 5s timeout */ 406 /* wait for reply with 1s timeout */
407 struct pollfd pfd = { 407 struct pollfd pfd = {
408 .fd = dh->sock, 408 .fd = dh->sock,
409 .events = POLLIN 409 .events = POLLIN
410 }; 410 };
411 sigset_t sigmask; 411 sigset_t sigmask;
412 struct timespec ts = { 412 struct timespec ts = {
413 .tv_sec = 5 413 .tv_sec = 1
414 }; 414 };
415 int ret; 415 int ret;
416 416
@@ -434,7 +434,7 @@ TALER_CRYPTO_helper_denom_poll (struct TALER_CRYPTO_DenominationHelper *dh)
434{ 434{
435 char buf[UINT16_MAX]; 435 char buf[UINT16_MAX];
436 ssize_t ret; 436 ssize_t ret;
437 unsigned int retry_limit = 10; 437 unsigned int retry_limit = 3;
438 const struct GNUNET_MessageHeader *hdr 438 const struct GNUNET_MessageHeader *hdr
439 = (const struct GNUNET_MessageHeader *) buf; 439 = (const struct GNUNET_MessageHeader *) buf;
440 int flag = MSG_DONTWAIT; 440 int flag = MSG_DONTWAIT;