Skip to content

Commit

Permalink
fix: reduce unnecessary timeouts
Browse files Browse the repository at this point in the history
Intensive throttling might result in heartbeats being sent only once a minute. This change adjusts the timeout to 90 seconds. For more information, see https://developer.chrome.com/blog/timer-throttling-in-chrome-88
Thank you, @e-nikolov.

Closes #431.
  • Loading branch information
jonasgloning committed Dec 5, 2023
1 parent 1b92275 commit 638af56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const defaultConfig: IConfig = {
host: "::",
port: 9000,
expire_timeout: 5000,
alive_timeout: 60000,
alive_timeout: 90000,
key: "peerjs",
path: "/",
concurrent_limit: 5000,
Expand Down

0 comments on commit 638af56

Please sign in to comment.