From c265e7d019d445add2d2cfb7cfcbdeee059684d3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 29 Mar 2022 13:47:32 +0200 Subject: wallet: make retries more robust and consistent --- packages/taler-wallet-core/src/util/http.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/taler-wallet-core/src/util/http.ts') diff --git a/packages/taler-wallet-core/src/util/http.ts b/packages/taler-wallet-core/src/util/http.ts index 9ccd560d9..58edd289b 100644 --- a/packages/taler-wallet-core/src/util/http.ts +++ b/packages/taler-wallet-core/src/util/http.ts @@ -51,6 +51,8 @@ export interface HttpResponse { bytes(): Promise; } +export const DEFAULT_REQUEST_TIMEOUT_MS = 60000; + export interface HttpRequestOptions { method?: "POST" | "PUT" | "GET"; headers?: { [name: string]: string }; -- cgit v1.2.3