Skip to content

Commit d2d5b4c

Browse files
committed
reduce the conat socket keep alive timeout
1 parent 4dba700 commit d2d5b4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/packages/conat/socket/util.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type Role = "client" | "server";
1313
// socketio and use those to manage things. This ping
1414
// is entirely a "just in case" backup if some event
1515
// were missed (e.g., a kill -9'd process...)
16-
export const PING_PONG_INTERVAL = 60000;
16+
export const PING_PONG_INTERVAL = 90000;
1717

1818
// We queue up unsent writes, but only up to a point (to not have a huge memory issue).
1919
// Any write beyond this size result in an exception.
@@ -24,8 +24,8 @@ export const PING_PONG_INTERVAL = 60000;
2424
export const DEFAULT_MAX_QUEUE_SIZE = 1000;
2525

2626
export let DEFAULT_COMMAND_TIMEOUT = 10_000;
27-
export let DEFAULT_KEEP_ALIVE = 90_000;
28-
export let DEFAULT_KEEP_ALIVE_TIMEOUT = 15_000;
27+
export let DEFAULT_KEEP_ALIVE = 25_000;
28+
export let DEFAULT_KEEP_ALIVE_TIMEOUT = 10_000;
2929

3030
export function setDefaultSocketTimeouts({
3131
command = DEFAULT_COMMAND_TIMEOUT,

0 commit comments

Comments
 (0)