gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: suspend if /keys is not ready


From: gnunet
Subject: [taler-exchange] branch master updated: suspend if /keys is not ready
Date: Wed, 01 Sep 2021 18:13:42 +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 5f95f26a suspend if /keys is not ready
5f95f26a is described below

commit 5f95f26a257cce0fa2b9eac275dc31957fb68b29
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Sep 1 18:13:39 2021 +0200

    suspend if /keys is not ready
---
 src/exchange/taler-exchange-httpd_keys.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_keys.c 
b/src/exchange/taler-exchange-httpd_keys.c
index d301c5de..6d062866 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -2125,15 +2125,9 @@ TEH_keys_get_handler (struct TEH_RequestContext *rc,
     }
     if (NULL == krd)
     {
-      /* Maybe client picked time stamp too far in the future?  In that case,
-         "INTERNAL_SERVER_ERROR" might be misleading, could be more like a
-         NOT_FOUND situation. But, OTOH, for 'sane' clients it is more likely
-         to be our fault, so let's speculatively assume we are to blame ;-) 
*///
-      GNUNET_break (0);
-      return TALER_MHD_reply_with_error (rc->connection,
-                                         MHD_HTTP_INTERNAL_SERVER_ERROR,
-                                         
TALER_EC_EXCHANGE_GENERIC_KEYS_MISSING,
-                                         "no key data for given timestamp");
+      /* Likely keys not ready *yet*.
+         Wait until they are. */
+      return suspend_request (rc->connection);
     }
     return MHD_queue_response (rc->connection,
                                MHD_HTTP_OK,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]