Skip to content

Commit

Permalink
Enable keep alive for imports to prevent socket hang up errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbosco committed Apr 23, 2024
1 parent b5521f2 commit 7bf483a
Show file tree
Hide file tree
Showing 15 changed files with 132 additions and 27 deletions.
50 changes: 44 additions & 6 deletions dist/typesense.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/typesense.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.min.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/Typesense/ApiCall.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ export default class ApiCall {
post<T>(endpoint: string, bodyParameters?: any, queryParameters?: any, additionalHeaders?: any): Promise<T>;
put<T>(endpoint: string, bodyParameters?: any, queryParameters?: any): Promise<T>;
patch<T>(endpoint: string, bodyParameters?: any, queryParameters?: any): Promise<T>;
performRequest<T>(requestType: Method, endpoint: string, { queryParameters, bodyParameters, additionalHeaders, abortSignal, responseType, skipConnectionTimeout, }: {
performRequest<T>(requestType: Method, endpoint: string, { queryParameters, bodyParameters, additionalHeaders, abortSignal, responseType, skipConnectionTimeout, enableKeepAlive, }: {
queryParameters?: any;
bodyParameters?: any;
additionalHeaders?: any;
abortSignal?: any;
responseType?: AxiosRequestConfig["responseType"] | undefined;
skipConnectionTimeout?: boolean;
enableKeepAlive?: boolean | undefined;
}): Promise<T>;
getNextNode(requestNumber?: number): Node;
nodeDueForHealthcheck(node: any, requestNumber?: number): boolean;
Expand Down
36 changes: 23 additions & 13 deletions lib/Typesense/ApiCall.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7bf483a

Please sign in to comment.