summaryrefslogtreecommitdiff
path: root/src/util/crypto_helper_esign.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/crypto_helper_esign.c')
-rw-r--r--src/util/crypto_helper_esign.c8
1 files changed, 4 insertions, 4 deletions
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;