Skip to content

Commit

Permalink
Set response timeout at client level
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Setton <[email protected]>
  • Loading branch information
jsetton committed Feb 2, 2025
1 parent 0170993 commit d0244fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lambda/openhab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ export default class OpenHAB {
},
httpsAgent: new HttpsAgent({
// Set keep-alive free socket to timeout after 45s of inactivity
freeSocketTimeout: 45000,
timeout: parseInt(timeout)
})
freeSocketTimeout: 45000
}),
timeout: parseInt(timeout)
});

// Add authentication options
Expand Down

0 comments on commit d0244fb

Please sign in to comment.