[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: fix #9044
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: fix #9044 |
Date: |
Fri, 09 Aug 2024 18:06:46 +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 79ab45c89 fix #9044
79ab45c89 is described below
commit 79ab45c895a8b15a19fcaf2561a5fdbf9e51d24a
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Aug 9 18:06:43 2024 +0200
fix #9044
---
src/exchange/taler-exchange-wirewatch.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/src/exchange/taler-exchange-wirewatch.c
b/src/exchange/taler-exchange-wirewatch.c
index 1fb49009a..174eb8aff 100644
--- a/src/exchange/taler-exchange-wirewatch.c
+++ b/src/exchange/taler-exchange-wirewatch.c
@@ -117,6 +117,11 @@ static struct GNUNET_TIME_Relative shard_delay;
*/
static struct GNUNET_TIME_Relative longpoll_timeout;
+/**
+ * How long do we wait on 404.
+ */
+static struct GNUNET_TIME_Relative h404_backoff;
+
/**
* Name of our job in the shard table.
*/
@@ -477,6 +482,10 @@ transaction_completed (void)
GNUNET_SCHEDULER_shutdown ();
return;
}
+ fprintf (stderr,
+ "XXX: %d %d\n",
+ hh_returned_data,
+ hh_account_404);
if (! (hh_returned_data || hh_account_404) )
{
/* Enforce long-polling delay even if the server ignored it
@@ -496,8 +505,15 @@ transaction_completed (void)
delayed_until = GNUNET_TIME_relative_to_absolute (left);
}
if (hh_account_404)
+ {
+ h404_backoff = GNUNET_TIME_STD_BACKOFF (h404_backoff);
delayed_until = GNUNET_TIME_relative_to_absolute (
- GNUNET_TIME_UNIT_MILLISECONDS);
+ h404_backoff);
+ }
+ else
+ {
+ h404_backoff = GNUNET_TIME_UNIT_ZERO;
+ }
if (test_mode)
delayed_until = GNUNET_TIME_UNIT_ZERO_ABS;
GNUNET_assert (NULL == task);
--
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: fix #9044,
gnunet <=