Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix: increase default socket close timeout (#242)
Browse files Browse the repository at this point in the history
Increases default inactivity timeout to 5 minutes.

closes #239
  • Loading branch information
mpetrunic committed Jan 17, 2023
1 parent 5c44562 commit a64ba41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
package-lock.json
coverage
.coverage
.nyc_output
.docs
dist
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export const CODE_UNIX = 400
export const CLOSE_TIMEOUT = 2000

// Close the socket if there is no activity after this long in ms
export const SOCKET_TIMEOUT = 30000
export const SOCKET_TIMEOUT = 5 * 60000 // 5 mins

0 comments on commit a64ba41

Please sign in to comment.