From 832f11a207a6fe1cd18074eae061f641edf0f7d0 Mon Sep 17 00:00:00 2001 From: walker Date: Fri, 25 Oct 2024 18:18:38 +0530 Subject: [PATCH 1/2] request timeout value correction --- src/messaging/batch-request-internal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messaging/batch-request-internal.ts b/src/messaging/batch-request-internal.ts index 7f87d7bde1..b9a0ef72dd 100644 --- a/src/messaging/batch-request-internal.ts +++ b/src/messaging/batch-request-internal.ts @@ -20,7 +20,7 @@ import { import { FirebaseAppError, AppErrorCodes } from '../utils/error'; const PART_BOUNDARY = '__END_OF_PART__'; -const TEN_SECONDS_IN_MILLIS = 15000; +const TEN_SECONDS_IN_MILLIS = 10000; /** * Represents a request that can be sent as part of an HTTP batch request. From 6b4c83ba3c1dabd1cd354eeb19151abe074b0a42 Mon Sep 17 00:00:00 2001 From: walker Date: Sat, 26 Oct 2024 10:16:22 +0530 Subject: [PATCH 2/2] request timeout constant name change --- src/messaging/batch-request-internal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/messaging/batch-request-internal.ts b/src/messaging/batch-request-internal.ts index b9a0ef72dd..e876fdcbd4 100644 --- a/src/messaging/batch-request-internal.ts +++ b/src/messaging/batch-request-internal.ts @@ -20,7 +20,7 @@ import { import { FirebaseAppError, AppErrorCodes } from '../utils/error'; const PART_BOUNDARY = '__END_OF_PART__'; -const TEN_SECONDS_IN_MILLIS = 10000; +const FIFTEEN_SECONDS_IN_MILLIS = 15000; /** * Represents a request that can be sent as part of an HTTP batch request. @@ -72,7 +72,7 @@ export class BatchRequestClient { url: this.batchUrl, data: this.getMultipartPayload(requests), headers: Object.assign({}, this.commonHeaders, requestHeaders), - timeout: TEN_SECONDS_IN_MILLIS, + timeout: FIFTEEN_SECONDS_IN_MILLIS, }; return this.httpClient.send(request).then((response) => { if (!response.multipart) {