aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-07-23 15:54:25 +0200
committerChristian Grothoff <christian@grothoff.org>2024-07-29 12:18:47 +0200
commit8df1e630528cf7d005806a7626062a753c05ca71 (patch)
treebb5cf6e2e87a3fdcc3811cbe5bc598feca014a97 /src/lib
parent47d273fa8f108d902a349cbf5bd58d8f77e0b844 (diff)
do not pass timeout in test
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_kyc_check.c24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/lib/exchange_api_kyc_check.c b/src/lib/exchange_api_kyc_check.c
index 26b4e75c1..7d8dd1996 100644
--- a/src/lib/exchange_api_kyc_check.c
+++ b/src/lib/exchange_api_kyc_check.c
@@ -240,23 +240,29 @@ TALER_EXCHANGE_kyc_check (
{
struct TALER_EXCHANGE_KycCheckHandle *kch;
CURL *eh;
- char *arg_str;
+ char arg_str[128];
struct curl_slist *job_headers = NULL;
unsigned long long tms;
tms = timeout.rel_value_us
/ GNUNET_TIME_UNIT_MILLISECONDS.rel_value_us;
- GNUNET_asprintf (&arg_str,
- "kyc-check/%llu?timeout_ms=%llu",
- (unsigned long long) requirement_row,
- tms);
+ if (0 != tms)
+ GNUNET_snprintf (arg_str,
+ sizeof (arg_str),
+ "kyc-check/%llu?timeout_ms=%llu",
+ (unsigned long long) requirement_row,
+ tms);
+ else
+ GNUNET_snprintf (arg_str,
+ sizeof (arg_str),
+ "kyc-check/%llu",
+ (unsigned long long) requirement_row);
kch = GNUNET_new (struct TALER_EXCHANGE_KycCheckHandle);
kch->cb = cb;
kch->cb_cls = cb_cls;
kch->url = TALER_url_join (url,
arg_str,
NULL);
- GNUNET_free (arg_str);
if (NULL == kch->url)
{
GNUNET_free (kch);
@@ -275,8 +281,12 @@ TALER_EXCHANGE_kyc_check (
GNUNET_break (CURLE_OK ==
curl_easy_setopt (eh,
CURLOPT_TIMEOUT_MS,
- (long) (tms + 100L)));
+ (long) (tms + 500L)));
}
+ GNUNET_break (CURLE_OK ==
+ curl_easy_setopt (eh,
+ CURLOPT_VERBOSE,
+ 1L));
job_headers = curl_slist_append (job_headers,
"Content-Type: application/json");