[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: reduce retries and timeout
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: reduce retries and timeout |
Date: |
Sat, 07 Aug 2021 19:02:56 +0200 |
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 1eba4f5e reduce retries and timeout
1eba4f5e is described below
commit 1eba4f5e6290833a15a1a157eb7d079e08d45a4e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Aug 7 19:02:54 2021 +0200
reduce retries and timeout
---
src/util/crypto_helper_denom.c | 8 ++++----
src/util/crypto_helper_esign.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c
index 168699b4..4f8c921f 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;
diff --git a/src/util/crypto_helper_esign.c b/src/util/crypto_helper_esign.c
index 29891d75..eb0673f2 100644
--- a/src/util/crypto_helper_esign.c
+++ b/src/util/crypto_helper_esign.c
@@ -355,19 +355,19 @@ handle_mt_purge (struct TALER_CRYPTO_ExchangeSignHelper
*esh,
* Wait until the socket is ready to read.
*
* @param esh helper to wait for
- * @return false on timeout (after 5s)
+ * @return false on timeout (after 1s)
*/
static bool
await_read_ready (struct TALER_CRYPTO_ExchangeSignHelper *esh)
{
- /* wait for reply with 5s timeout */
+ /* wait for reply with 1s timeout */
struct pollfd pfd = {
.fd = esh->sock,
.events = POLLIN
};
sigset_t sigmask;
struct timespec ts = {
- .tv_sec = 5
+ .tv_sec = 1
};
int ret;
@@ -391,7 +391,7 @@ TALER_CRYPTO_helper_esign_poll (struct
TALER_CRYPTO_ExchangeSignHelper *esh)
{
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;
--
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: reduce retries and timeout,
gnunet <=