[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] 01/02: GONE is actually too many requests
From: |
gnunet |
Subject: |
[taler-anastasis] 01/02: GONE is actually too many requests |
Date: |
Mon, 29 Mar 2021 10:25:45 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
commit ceb03af69efffe54a5ded8f997c1c07248180006
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Mar 29 10:02:24 2021 +0200
GONE is actually too many requests
---
src/backend/anastasis-httpd_truth.c | 9 +++++----
src/reducer/anastasis_api_recovery_redux.c | 1 -
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/backend/anastasis-httpd_truth.c
b/src/backend/anastasis-httpd_truth.c
index 7001018..0e3987d 100644
--- a/src/backend/anastasis-httpd_truth.c
+++ b/src/backend/anastasis-httpd_truth.c
@@ -1032,11 +1032,12 @@ AH_handler_truth_get (
TALER_EC_GENERIC_DB_FETCH_FAILED,
"verify_challenge_code");
case ANASTASIS_DB_CODE_STATUS_NO_RESULTS:
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- "No challenge known\n");
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "No challenge known (challenge is invalidated after %u
requests)\n",
+ INITIAL_RETRY_COUNTER);
return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_GONE,
-
TALER_EC_ANASTASIS_TRUTH_CHALLENGE_UNKNOWN,
+ MHD_HTTP_TOO_MANY_REQUESTS,
+ TALER_EC_ANASTASIS_TRUTH_RATE_LIMITED,
NULL);
case ANASTASIS_DB_CODE_STATUS_VALID_CODE_STORED:
return return_key_share (&gc->truth_uuid,
diff --git a/src/reducer/anastasis_api_recovery_redux.c
b/src/reducer/anastasis_api_recovery_redux.c
index 78b1de0..ff60f76 100644
--- a/src/reducer/anastasis_api_recovery_redux.c
+++ b/src/reducer/anastasis_api_recovery_redux.c
@@ -572,7 +572,6 @@ answer_feedback_cb (
uuid,
err));
}
- GNUNET_break_op (0);
set_state (sctx->state,
ANASTASIS_GENERIC_STATE_ERROR);
sctx->cb (sctx->cb_cls,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.