commit 23d94a0dcca6c061a41eaf2505b2b79dd0f39af4
parent 0d58876d7f521385b12859de3d3f0d25082b7fc2
Author: Florian Dold <florian.dold@gmail.com>
Date: Tue, 19 Apr 2016 01:42:35 +0200
Decrease exchange retry timeout, notify clients correctly.
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_exchanges.c b/src/backend/taler-merchant-httpd_exchanges.c
@@ -27,7 +27,7 @@
/**
* How often do we retry fetching /keys?
*/
-#define KEYS_RETRY_FREQ GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 60)
+#define KEYS_RETRY_FREQ GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
/**
@@ -385,13 +385,10 @@ TMH_EXCHANGES_find_exchange (const char *chosen_exchange,
exchange->fo_tail,
fo);
- if (GNUNET_NO == exchange->pending)
+ if (GNUNET_OK != exchange->pending)
{
/* We are not currently waiting for a reply, immediately
return result */
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Exchange `%s' already contacted\n",
- chosen_exchange);
fo->at = GNUNET_SCHEDULER_add_now (&return_result,
fo);
return fo;