Skip to content

Commit

Permalink
feat: Increase S3 timeout to 5 seconds
Browse files Browse the repository at this point in the history
Since updating `@aws-sdk/client-s3` to v3.717.0 we've seen an increase of timeouts:

> RequestTimeout: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.

See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
  • Loading branch information
akash1810 committed Dec 31, 2024
1 parent 8c52296 commit 231178b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61721,7 +61721,16 @@ var main = async (options) => {
credentials: (0, import_credential_providers.fromWebToken)({
roleArn,
webIdentityToken: idToken
})
}),
/*
Increase the timeout to 5 seconds as since updating `@aws-sdk/client-s3` to v3.717.0 we've seen an increase of timeouts:
> RequestTimeout: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.

See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
*/
requestHandler: {
requestTimeout: 5 * 1e3
}
})
);
const keyPrefix = riffraffPrefix(mfest);
Expand Down
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ export const main = async (options: Options): Promise<void> => {
roleArn: roleArn,
webIdentityToken: idToken,
}),

/*
Increase the timeout to 5 seconds as since updating `@aws-sdk/client-s3` to v3.717.0 we've seen an increase of timeouts:
> RequestTimeout: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
*/
requestHandler: {
requestTimeout: 5 * 1000,
},
}),
);
const keyPrefix = riffraffPrefix(mfest);
Expand Down

0 comments on commit 231178b

Please sign in to comment.