commit 6fc2e6eb7c9c3b53b44df4e68d795abf18fc2033
parent b829c761f511eda0f8add2c8070798631114101b
Author: Florian Dold <florian@dold.me>
Date: Thu, 23 Jul 2026 15:20:00 +0200
rename deprecated long_poll_ms to timeout_ms
This will make many integration tests faster, since they do not run into
early long-poll result issues that induce a 10+ second safety delay.
Diffstat:
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/bank-lib/bank_api_credit.c b/src/bank-lib/bank_api_credit.c
@@ -348,7 +348,7 @@ TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx,
/* 0 == start_row is implied, go with timeout into future */
GNUNET_snprintf (url,
sizeof (url),
- "history/incoming?limit=%lld&long_poll_ms=%llu",
+ "history/incoming?limit=%lld&timeout_ms=%llu",
(long long) num_results,
tms);
else
@@ -366,7 +366,7 @@ TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx,
/* going forward from num_result */
GNUNET_snprintf (url,
sizeof (url),
- "history/incoming?limit=%lld&offset=%llu&long_poll_ms=%llu",
+ "history/incoming?limit=%lld&offset=%llu&timeout_ms=%llu",
(long long) num_results,
(unsigned long long) start_row,
tms);
diff --git a/src/bank-lib/bank_api_debit.c b/src/bank-lib/bank_api_debit.c
@@ -255,7 +255,7 @@ TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx,
(! GNUNET_TIME_relative_is_zero (timeout)) )
GNUNET_snprintf (url,
sizeof (url),
- "history/outgoing?limit=%lld&long_poll_ms=%llu",
+ "history/outgoing?limit=%lld&timeout_ms=%llu",
(long long) num_results,
tms);
else
@@ -270,7 +270,7 @@ TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx,
(! GNUNET_TIME_relative_is_zero (timeout)) )
GNUNET_snprintf (url,
sizeof (url),
- "history/outgoing?limit=%lld&offset=%llu&long_poll_ms=%llu",
+ "history/outgoing?limit=%lld&offset=%llu&timeout_ms=%llu",
(long long) num_results,
(unsigned long long) start_row,
tms);
diff --git a/src/bank-lib/fakebank_common_parser.c b/src/bank-lib/fakebank_common_parser.c
@@ -37,7 +37,7 @@ TALER_FAKEBANK_common_parse_history_args (
{
const char *offset;
const char *limit;
- const char *long_poll_ms;
+ const char *timeout_ms;
unsigned long long lp_timeout;
unsigned long long sval;
long long d;
@@ -58,9 +58,9 @@ TALER_FAKEBANK_common_parse_history_args (
limit = MHD_lookup_connection_value (connection,
MHD_GET_ARGUMENT_KIND,
"delta");
- long_poll_ms = MHD_lookup_connection_value (connection,
+ timeout_ms = MHD_lookup_connection_value (connection,
MHD_GET_ARGUMENT_KIND,
- "long_poll_ms");
+ "timeout_ms");
lp_timeout = 0;
if ( (NULL == limit) ||
(1 != sscanf (limit,
@@ -81,8 +81,8 @@ TALER_FAKEBANK_common_parse_history_args (
? GNUNET_NO
: GNUNET_SYSERR;
}
- if ( (NULL != long_poll_ms) &&
- (1 != sscanf (long_poll_ms,
+ if ( (NULL != timeout_ms) &&
+ (1 != sscanf (timeout_ms,
"%llu%c",
&lp_timeout,
&dummy)) )
@@ -96,7 +96,7 @@ TALER_FAKEBANK_common_parse_history_args (
TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
TALER_EC_GENERIC_PARAMETER_MALFORMED,
- "long_poll_ms"))
+ "timeout_ms"))
? GNUNET_NO
: GNUNET_SYSERR;
}
diff --git a/src/bank-lib/fakebank_tbi.c b/src/bank-lib/fakebank_tbi.c
@@ -109,7 +109,7 @@ TALER_FAKEBANK_tbi_main_ (struct TALER_FAKEBANK_Handle *h,
const char *lp_s
= MHD_lookup_connection_value (connection,
MHD_GET_ARGUMENT_KIND,
- "long_poll_ms");
+ "timeout_ms");
struct GNUNET_TIME_Relative lp = GNUNET_TIME_UNIT_ZERO;
if (NULL != lp_s)
@@ -126,7 +126,7 @@ TALER_FAKEBANK_tbi_main_ (struct TALER_FAKEBANK_Handle *h,
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
TALER_EC_GENERIC_PARAMETER_MALFORMED,
- "long_poll_ms");
+ "timeout_ms");
}
lp = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS,
d);