From 0919fe8b52588bd8f3adb83817158abc9434ac5b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 31 Dec 2021 18:26:49 +0100 Subject: document and shorten default payment timeout (fixes #7073) --- src/backend/anastasis-httpd_policy.c | 7 ------- src/backend/anastasis-httpd_policy_upload.c | 2 +- src/backend/anastasis-httpd_truth.c | 7 ------- 3 files changed, 1 insertion(+), 15 deletions(-) (limited to 'src') diff --git a/src/backend/anastasis-httpd_policy.c b/src/backend/anastasis-httpd_policy.c index 6e206a2..99ed719 100644 --- a/src/backend/anastasis-httpd_policy.c +++ b/src/backend/anastasis-httpd_policy.c @@ -30,13 +30,6 @@ #include #include -/** - * How long do we hold an HTTP client connection if - * we are awaiting payment before giving up? - */ -#define CHECK_PAYMENT_GENERIC_TIMEOUT GNUNET_TIME_relative_multiply ( \ - GNUNET_TIME_UNIT_MINUTES, 30) - /** * Return the current recoverydocument of @a account on @a connection diff --git a/src/backend/anastasis-httpd_policy_upload.c b/src/backend/anastasis-httpd_policy_upload.c index 4c86241..11f15e2 100644 --- a/src/backend/anastasis-httpd_policy_upload.c +++ b/src/backend/anastasis-httpd_policy_upload.c @@ -35,7 +35,7 @@ * we are awaiting payment before giving up? */ #define CHECK_PAYMENT_GENERIC_TIMEOUT GNUNET_TIME_relative_multiply ( \ - GNUNET_TIME_UNIT_MINUTES, 30) + GNUNET_TIME_UNIT_SECONDS, 30) /** diff --git a/src/backend/anastasis-httpd_truth.c b/src/backend/anastasis-httpd_truth.c index 54969bf..2a80cb7 100644 --- a/src/backend/anastasis-httpd_truth.c +++ b/src/backend/anastasis-httpd_truth.c @@ -37,13 +37,6 @@ #define MAX_QUESTION_FREQ GNUNET_TIME_relative_multiply ( \ GNUNET_TIME_UNIT_SECONDS, 30) -/** - * How long do we hold an HTTP client connection if - * we are awaiting payment before giving up? - */ -#define CHECK_PAYMENT_GENERIC_TIMEOUT GNUNET_TIME_relative_multiply ( \ - GNUNET_TIME_UNIT_MINUTES, 30) - /** * How long should the wallet check for auto-refunds before giving up? */ -- cgit v1.2.3