Skip to content

Commit 3193697

Browse files
committed
Disabling node socket timeout
1 parent cdc2061 commit 3193697

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ class Offline {
330330
const funName = key;
331331
const servicePath = path.join(this.serverless.config.servicePath, this.options.location);
332332
const funOptions = functionHelper.getFunctionOptions(fun, key, servicePath);
333+
debugLog(`funOptions ${JSON.stringify(funOptions, null, 2)} `);
333334

334335
this.printBlankLine();
335336
debugLog(funName, 'runtime', serviceRuntime, funOptions.babelOptions || '');
@@ -386,6 +387,7 @@ class Offline {
386387
const routeConfig = {
387388
cors,
388389
auth: authStrategyName,
390+
timeout: { socket: false },
389391
};
390392

391393
if (routeMethod !== 'HEAD' && routeMethod !== 'GET') {

0 commit comments

Comments
 (0)