From 23d94a0dcca6c061a41eaf2505b2b79dd0f39af4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 19 Apr 2016 01:42:35 +0200 Subject: Decrease exchange retry timeout, notify clients correctly. --- src/backend/taler-merchant-httpd_exchanges.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/backend/taler-merchant-httpd_exchanges.c') diff --git a/src/backend/taler-merchant-httpd_exchanges.c b/src/backend/taler-merchant-httpd_exchanges.c index b1da8a02..97886a47 100644 --- 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; -- cgit v1.2.3