Skip to content

Commit

Permalink
fix: set default connection timeout to 1 second
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz committed Oct 2, 2024
1 parent 5c9bd6a commit 05d8829
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 38 deletions.
4 changes: 3 additions & 1 deletion src/warmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,12 @@ async function createWarmUpFunctionArtifact(functions, tracing, verbose, region,
/** Generated by Serverless WarmUp Plugin **/
import { LambdaClient, InvokeCommand } from '@aws-sdk/client-lambda';
import { NodeHttpHandler } from '@smithy/node-http-handler';
const uninstrumentedLambdaClient = new LambdaClient({
apiVersion: '2015-03-31',
region: '${region}'
region: '${region}',
requestHandler: new NodeHttpHandler({ connectionTimeout: 1000 }),
});
${tracing
Expand Down
Loading

0 comments on commit 05d8829

Please sign in to comment.