diff --git a/packages/algoliasearch/lite/builds/browser.ts b/packages/algoliasearch/lite/builds/browser.ts index 17c71a6df..e0e34ecd2 100644 --- a/packages/algoliasearch/lite/builds/browser.ts +++ b/packages/algoliasearch/lite/builds/browser.ts @@ -7,9 +7,6 @@ import { createFallbackableCache, createMemoryCache, createNullLogger, - DEFAULT_CONNECT_TIMEOUT_BROWSER, - DEFAULT_READ_TIMEOUT_BROWSER, - DEFAULT_WRITE_TIMEOUT_BROWSER, } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -33,9 +30,9 @@ export function liteClient(appId: string, apiKey: string, options?: ClientOption appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_BROWSER, - read: DEFAULT_READ_TIMEOUT_BROWSER, - write: DEFAULT_WRITE_TIMEOUT_BROWSER, + connect: 1000, + read: 2000, + write: 30000, }, logger: createNullLogger(), requester: createXhrRequester(), diff --git a/packages/algoliasearch/lite/builds/node.ts b/packages/algoliasearch/lite/builds/node.ts index ae1ba15a1..67e97b26f 100644 --- a/packages/algoliasearch/lite/builds/node.ts +++ b/packages/algoliasearch/lite/builds/node.ts @@ -4,14 +4,7 @@ export type LiteClient = ReturnType; import { createHttpRequester } from '@algolia/requester-node-http'; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -34,9 +27,9 @@ export function liteClient(appId: string, apiKey: string, options?: ClientOption appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), requester: createHttpRequester(), diff --git a/packages/client-abtesting/builds/browser.ts b/packages/client-abtesting/builds/browser.ts index fcb6a5cfc..27c6f8da5 100644 --- a/packages/client-abtesting/builds/browser.ts +++ b/packages/client-abtesting/builds/browser.ts @@ -7,9 +7,6 @@ import { createFallbackableCache, createMemoryCache, createNullLogger, - DEFAULT_CONNECT_TIMEOUT_BROWSER, - DEFAULT_READ_TIMEOUT_BROWSER, - DEFAULT_WRITE_TIMEOUT_BROWSER, } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -48,9 +45,9 @@ export function abtestingClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_BROWSER, - read: DEFAULT_READ_TIMEOUT_BROWSER, - write: DEFAULT_WRITE_TIMEOUT_BROWSER, + connect: 1000, + read: 2000, + write: 30000, }, logger: createNullLogger(), requester: createXhrRequester(), diff --git a/packages/client-abtesting/builds/fetch.ts b/packages/client-abtesting/builds/fetch.ts index 542942806..3a22a3be2 100644 --- a/packages/client-abtesting/builds/fetch.ts +++ b/packages/client-abtesting/builds/fetch.ts @@ -2,14 +2,7 @@ export type AbtestingClient = ReturnType; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import { createFetchRequester } from '@algolia/requester-fetch'; import type { ClientOptions } from '@algolia/client-common'; @@ -49,9 +42,9 @@ export function abtestingClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), algoliaAgents: [{ segment: 'Fetch' }], diff --git a/packages/client-abtesting/builds/node.ts b/packages/client-abtesting/builds/node.ts index bb33326e8..ae808e6a1 100644 --- a/packages/client-abtesting/builds/node.ts +++ b/packages/client-abtesting/builds/node.ts @@ -4,14 +4,7 @@ export type AbtestingClient = ReturnType; import { createHttpRequester } from '@algolia/requester-node-http'; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -50,9 +43,9 @@ export function abtestingClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), requester: createHttpRequester(), diff --git a/packages/client-analytics/builds/browser.ts b/packages/client-analytics/builds/browser.ts index 7acfde777..77f99642a 100644 --- a/packages/client-analytics/builds/browser.ts +++ b/packages/client-analytics/builds/browser.ts @@ -7,9 +7,6 @@ import { createFallbackableCache, createMemoryCache, createNullLogger, - DEFAULT_CONNECT_TIMEOUT_BROWSER, - DEFAULT_READ_TIMEOUT_BROWSER, - DEFAULT_WRITE_TIMEOUT_BROWSER, } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -48,9 +45,9 @@ export function analyticsClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_BROWSER, - read: DEFAULT_READ_TIMEOUT_BROWSER, - write: DEFAULT_WRITE_TIMEOUT_BROWSER, + connect: 1000, + read: 2000, + write: 30000, }, logger: createNullLogger(), requester: createXhrRequester(), diff --git a/packages/client-analytics/builds/fetch.ts b/packages/client-analytics/builds/fetch.ts index 15b134628..db3828cd9 100644 --- a/packages/client-analytics/builds/fetch.ts +++ b/packages/client-analytics/builds/fetch.ts @@ -2,14 +2,7 @@ export type AnalyticsClient = ReturnType; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import { createFetchRequester } from '@algolia/requester-fetch'; import type { ClientOptions } from '@algolia/client-common'; @@ -49,9 +42,9 @@ export function analyticsClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), algoliaAgents: [{ segment: 'Fetch' }], diff --git a/packages/client-analytics/builds/node.ts b/packages/client-analytics/builds/node.ts index 60ee24939..1d1c2655e 100644 --- a/packages/client-analytics/builds/node.ts +++ b/packages/client-analytics/builds/node.ts @@ -4,14 +4,7 @@ export type AnalyticsClient = ReturnType; import { createHttpRequester } from '@algolia/requester-node-http'; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -50,9 +43,9 @@ export function analyticsClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), requester: createHttpRequester(), diff --git a/packages/client-composition/builds/browser.ts b/packages/client-composition/builds/browser.ts index cfe11b7bc..8fd653013 100644 --- a/packages/client-composition/builds/browser.ts +++ b/packages/client-composition/builds/browser.ts @@ -7,9 +7,6 @@ import { createFallbackableCache, createMemoryCache, createNullLogger, - DEFAULT_CONNECT_TIMEOUT_BROWSER, - DEFAULT_READ_TIMEOUT_BROWSER, - DEFAULT_WRITE_TIMEOUT_BROWSER, } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -33,9 +30,9 @@ export function compositionClient(appId: string, apiKey: string, options?: Clien appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_BROWSER, - read: DEFAULT_READ_TIMEOUT_BROWSER, - write: DEFAULT_WRITE_TIMEOUT_BROWSER, + connect: 1000, + read: 2000, + write: 30000, }, logger: createNullLogger(), requester: createXhrRequester(), diff --git a/packages/client-composition/builds/fetch.ts b/packages/client-composition/builds/fetch.ts index 232378048..1f55b2290 100644 --- a/packages/client-composition/builds/fetch.ts +++ b/packages/client-composition/builds/fetch.ts @@ -2,14 +2,7 @@ export type CompositionClient = ReturnType; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import { createFetchRequester } from '@algolia/requester-fetch'; import type { ClientOptions } from '@algolia/client-common'; @@ -34,9 +27,9 @@ export function compositionClient(appId: string, apiKey: string, options?: Clien appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), algoliaAgents: [{ segment: 'Fetch' }], diff --git a/packages/client-composition/builds/node.ts b/packages/client-composition/builds/node.ts index 55e3cf770..26d2ad6d1 100644 --- a/packages/client-composition/builds/node.ts +++ b/packages/client-composition/builds/node.ts @@ -4,14 +4,7 @@ export type CompositionClient = ReturnType; import { createHttpRequester } from '@algolia/requester-node-http'; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -35,9 +28,9 @@ export function compositionClient(appId: string, apiKey: string, options?: Clien appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), requester: createHttpRequester(), diff --git a/packages/client-insights/builds/browser.ts b/packages/client-insights/builds/browser.ts index fa8d0fbd7..d5bd93ba3 100644 --- a/packages/client-insights/builds/browser.ts +++ b/packages/client-insights/builds/browser.ts @@ -7,9 +7,6 @@ import { createFallbackableCache, createMemoryCache, createNullLogger, - DEFAULT_CONNECT_TIMEOUT_BROWSER, - DEFAULT_READ_TIMEOUT_BROWSER, - DEFAULT_WRITE_TIMEOUT_BROWSER, } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -48,9 +45,9 @@ export function insightsClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_BROWSER, - read: DEFAULT_READ_TIMEOUT_BROWSER, - write: DEFAULT_WRITE_TIMEOUT_BROWSER, + connect: 1000, + read: 2000, + write: 30000, }, logger: createNullLogger(), requester: createXhrRequester(), diff --git a/packages/client-insights/builds/fetch.ts b/packages/client-insights/builds/fetch.ts index e5d22aff3..346d3c4d4 100644 --- a/packages/client-insights/builds/fetch.ts +++ b/packages/client-insights/builds/fetch.ts @@ -2,14 +2,7 @@ export type InsightsClient = ReturnType; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import { createFetchRequester } from '@algolia/requester-fetch'; import type { ClientOptions } from '@algolia/client-common'; @@ -49,9 +42,9 @@ export function insightsClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), algoliaAgents: [{ segment: 'Fetch' }], diff --git a/packages/client-insights/builds/node.ts b/packages/client-insights/builds/node.ts index fded91fb7..447fe7987 100644 --- a/packages/client-insights/builds/node.ts +++ b/packages/client-insights/builds/node.ts @@ -4,14 +4,7 @@ export type InsightsClient = ReturnType; import { createHttpRequester } from '@algolia/requester-node-http'; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -50,9 +43,9 @@ export function insightsClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), requester: createHttpRequester(), diff --git a/packages/client-personalization/builds/browser.ts b/packages/client-personalization/builds/browser.ts index f8d0569be..bb24e3e05 100644 --- a/packages/client-personalization/builds/browser.ts +++ b/packages/client-personalization/builds/browser.ts @@ -7,9 +7,6 @@ import { createFallbackableCache, createMemoryCache, createNullLogger, - DEFAULT_CONNECT_TIMEOUT_BROWSER, - DEFAULT_READ_TIMEOUT_BROWSER, - DEFAULT_WRITE_TIMEOUT_BROWSER, } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -48,9 +45,9 @@ export function personalizationClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_BROWSER, - read: DEFAULT_READ_TIMEOUT_BROWSER, - write: DEFAULT_WRITE_TIMEOUT_BROWSER, + connect: 1000, + read: 2000, + write: 30000, }, logger: createNullLogger(), requester: createXhrRequester(), diff --git a/packages/client-personalization/builds/fetch.ts b/packages/client-personalization/builds/fetch.ts index 018d8b92f..eee2c9e54 100644 --- a/packages/client-personalization/builds/fetch.ts +++ b/packages/client-personalization/builds/fetch.ts @@ -2,14 +2,7 @@ export type PersonalizationClient = ReturnType; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import { createFetchRequester } from '@algolia/requester-fetch'; import type { ClientOptions } from '@algolia/client-common'; @@ -49,9 +42,9 @@ export function personalizationClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), algoliaAgents: [{ segment: 'Fetch' }], diff --git a/packages/client-personalization/builds/node.ts b/packages/client-personalization/builds/node.ts index 1f64f9b90..73e0aa745 100644 --- a/packages/client-personalization/builds/node.ts +++ b/packages/client-personalization/builds/node.ts @@ -4,14 +4,7 @@ export type PersonalizationClient = ReturnType; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import { createFetchRequester } from '@algolia/requester-fetch'; import type { ClientOptions } from '@algolia/client-common'; @@ -49,9 +42,9 @@ export function querySuggestionsClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), algoliaAgents: [{ segment: 'Fetch' }], diff --git a/packages/client-query-suggestions/builds/node.ts b/packages/client-query-suggestions/builds/node.ts index d29a5c52b..7bf473d13 100644 --- a/packages/client-query-suggestions/builds/node.ts +++ b/packages/client-query-suggestions/builds/node.ts @@ -4,14 +4,7 @@ export type QuerySuggestionsClient = ReturnType & SearchClientNodeHelpers; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, - serializeQueryParameters, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger, serializeQueryParameters } from '@algolia/client-common'; import { createFetchRequester } from '@algolia/requester-fetch'; import type { ClientOptions } from '@algolia/client-common'; @@ -43,9 +35,9 @@ export function searchClient(appId: string, apiKey: string, options?: ClientOpti appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), algoliaAgents: [{ segment: 'Fetch' }], diff --git a/packages/client-search/builds/node.ts b/packages/client-search/builds/node.ts index 317c50416..87ac151f0 100644 --- a/packages/client-search/builds/node.ts +++ b/packages/client-search/builds/node.ts @@ -4,15 +4,7 @@ export type SearchClient = ReturnType & SearchClientN import { createHttpRequester } from '@algolia/requester-node-http'; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, - serializeQueryParameters, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger, serializeQueryParameters } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -44,9 +36,9 @@ export function searchClient(appId: string, apiKey: string, options?: ClientOpti appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), requester: createHttpRequester(), diff --git a/packages/ingestion/builds/browser.ts b/packages/ingestion/builds/browser.ts index 941c77116..cbd5f919d 100644 --- a/packages/ingestion/builds/browser.ts +++ b/packages/ingestion/builds/browser.ts @@ -7,9 +7,6 @@ import { createFallbackableCache, createMemoryCache, createNullLogger, - DEFAULT_CONNECT_TIMEOUT_BROWSER, - DEFAULT_READ_TIMEOUT_BROWSER, - DEFAULT_WRITE_TIMEOUT_BROWSER, } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -48,9 +45,9 @@ export function ingestionClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_BROWSER, - read: DEFAULT_READ_TIMEOUT_BROWSER, - write: DEFAULT_WRITE_TIMEOUT_BROWSER, + connect: 25000, + read: 25000, + write: 25000, }, logger: createNullLogger(), requester: createXhrRequester(), diff --git a/packages/ingestion/builds/fetch.ts b/packages/ingestion/builds/fetch.ts index 3b9e12df5..368815065 100644 --- a/packages/ingestion/builds/fetch.ts +++ b/packages/ingestion/builds/fetch.ts @@ -2,14 +2,7 @@ export type IngestionClient = ReturnType; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import { createFetchRequester } from '@algolia/requester-fetch'; import type { ClientOptions } from '@algolia/client-common'; @@ -49,9 +42,9 @@ export function ingestionClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 25000, + read: 25000, + write: 25000, }, logger: createNullLogger(), algoliaAgents: [{ segment: 'Fetch' }], diff --git a/packages/ingestion/builds/node.ts b/packages/ingestion/builds/node.ts index 12cc508bc..caba62d76 100644 --- a/packages/ingestion/builds/node.ts +++ b/packages/ingestion/builds/node.ts @@ -4,14 +4,7 @@ export type IngestionClient = ReturnType; import { createHttpRequester } from '@algolia/requester-node-http'; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -50,9 +43,9 @@ export function ingestionClient( apiKey, region, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 25000, + read: 25000, + write: 25000, }, logger: createNullLogger(), requester: createHttpRequester(), diff --git a/packages/monitoring/builds/browser.ts b/packages/monitoring/builds/browser.ts index a1c5db2d6..457f0075e 100644 --- a/packages/monitoring/builds/browser.ts +++ b/packages/monitoring/builds/browser.ts @@ -7,9 +7,6 @@ import { createFallbackableCache, createMemoryCache, createNullLogger, - DEFAULT_CONNECT_TIMEOUT_BROWSER, - DEFAULT_READ_TIMEOUT_BROWSER, - DEFAULT_WRITE_TIMEOUT_BROWSER, } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -33,9 +30,9 @@ export function monitoringClient(appId: string, apiKey: string, options?: Client appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_BROWSER, - read: DEFAULT_READ_TIMEOUT_BROWSER, - write: DEFAULT_WRITE_TIMEOUT_BROWSER, + connect: 1000, + read: 2000, + write: 30000, }, logger: createNullLogger(), requester: createXhrRequester(), diff --git a/packages/monitoring/builds/fetch.ts b/packages/monitoring/builds/fetch.ts index 86331c04e..f75a805b2 100644 --- a/packages/monitoring/builds/fetch.ts +++ b/packages/monitoring/builds/fetch.ts @@ -2,14 +2,7 @@ export type MonitoringClient = ReturnType; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import { createFetchRequester } from '@algolia/requester-fetch'; import type { ClientOptions } from '@algolia/client-common'; @@ -34,9 +27,9 @@ export function monitoringClient(appId: string, apiKey: string, options?: Client appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), algoliaAgents: [{ segment: 'Fetch' }], diff --git a/packages/monitoring/builds/node.ts b/packages/monitoring/builds/node.ts index 1d09dd01f..e86f6e71a 100644 --- a/packages/monitoring/builds/node.ts +++ b/packages/monitoring/builds/node.ts @@ -4,14 +4,7 @@ export type MonitoringClient = ReturnType; import { createHttpRequester } from '@algolia/requester-node-http'; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -35,9 +28,9 @@ export function monitoringClient(appId: string, apiKey: string, options?: Client appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), requester: createHttpRequester(), diff --git a/packages/recommend/builds/browser.ts b/packages/recommend/builds/browser.ts index ce49a3778..89a01125c 100644 --- a/packages/recommend/builds/browser.ts +++ b/packages/recommend/builds/browser.ts @@ -7,9 +7,6 @@ import { createFallbackableCache, createMemoryCache, createNullLogger, - DEFAULT_CONNECT_TIMEOUT_BROWSER, - DEFAULT_READ_TIMEOUT_BROWSER, - DEFAULT_WRITE_TIMEOUT_BROWSER, } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -33,9 +30,9 @@ export function recommendClient(appId: string, apiKey: string, options?: ClientO appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_BROWSER, - read: DEFAULT_READ_TIMEOUT_BROWSER, - write: DEFAULT_WRITE_TIMEOUT_BROWSER, + connect: 1000, + read: 2000, + write: 30000, }, logger: createNullLogger(), requester: createXhrRequester(), diff --git a/packages/recommend/builds/fetch.ts b/packages/recommend/builds/fetch.ts index fa2635036..fd2680ec5 100644 --- a/packages/recommend/builds/fetch.ts +++ b/packages/recommend/builds/fetch.ts @@ -2,14 +2,7 @@ export type RecommendClient = ReturnType; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import { createFetchRequester } from '@algolia/requester-fetch'; import type { ClientOptions } from '@algolia/client-common'; @@ -34,9 +27,9 @@ export function recommendClient(appId: string, apiKey: string, options?: ClientO appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), algoliaAgents: [{ segment: 'Fetch' }], diff --git a/packages/recommend/builds/node.ts b/packages/recommend/builds/node.ts index a2eba41a7..a7d2a8f35 100644 --- a/packages/recommend/builds/node.ts +++ b/packages/recommend/builds/node.ts @@ -4,14 +4,7 @@ export type RecommendClient = ReturnType; import { createHttpRequester } from '@algolia/requester-node-http'; -import { - createMemoryCache, - createNullCache, - createNullLogger, - DEFAULT_CONNECT_TIMEOUT_NODE, - DEFAULT_READ_TIMEOUT_NODE, - DEFAULT_WRITE_TIMEOUT_NODE, -} from '@algolia/client-common'; +import { createMemoryCache, createNullCache, createNullLogger } from '@algolia/client-common'; import type { ClientOptions } from '@algolia/client-common'; @@ -35,9 +28,9 @@ export function recommendClient(appId: string, apiKey: string, options?: ClientO appId, apiKey, timeouts: { - connect: DEFAULT_CONNECT_TIMEOUT_NODE, - read: DEFAULT_READ_TIMEOUT_NODE, - write: DEFAULT_WRITE_TIMEOUT_NODE, + connect: 2000, + read: 5000, + write: 30000, }, logger: createNullLogger(), requester: createHttpRequester(),