Skip to content

Commit

Permalink
Add retries to http client (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcafaro authored Sep 27, 2024
1 parent 4e2bf2a commit b5b6100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matlab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export async function getReleaseInfo(release: string): Promise<Release> {
const trimmedRelease = release.toLowerCase().trim()
if (trimmedRelease === "latest" || trimmedRelease === "latest-including-prerelease") {
try {
const client: http.HttpClient = new http.HttpClient();
const client: http.HttpClient = new http.HttpClient(undefined, [], { allowRetries: true, maxRetries: 3 });
const latestResp = await client.get(`${properties.matlabReleaseInfoUrl}${trimmedRelease}`);
name = await latestResp.readBody();
}
Expand Down

0 comments on commit b5b6100

Please sign in to comment.