diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-08-09 18:06:43 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-08-09 18:06:43 +0200 |
commit | 79ab45c895a8b15a19fcaf2561a5fdbf9e51d24a (patch) | |
tree | ad6368f7a4bd57c6bc6a74397797f65b008ca067 | |
parent | 19b7901c6562b2b1615f0f1b1d9ffbce50c419dc (diff) |
fix #9044
-rw-r--r-- | src/exchange/taler-exchange-wirewatch.c | 18 |
1 files changed, 17 insertions, 1 deletions
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 @@ -118,6 +118,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. */ static char *job_name; @@ -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); |