Skip to content

Commit ac5d9ae

Browse files
committed
adjust the global changefeed limit (there might be a leak in the counter)
1 parent dfe2760 commit ac5d9ae

File tree

1 file changed

+6
-6
lines changed
  • src/packages/conat/hub/changefeeds

1 file changed

+6
-6
lines changed

src/packages/conat/hub/changefeeds/util.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ export const SUBJECT = "changefeeds.*";
66
// If the user refreshes their browser, it is still about a minute
77
// before all the changefeeds they had open are free (due to the
88
// SERVER_KEEPALIVE time below).
9-
export const MAX_PER_ACCOUNT = 500;
10-
export const MAX_GLOBAL = 10000;
9+
export const MAX_PER_ACCOUNT = 1_000;
10+
export const MAX_GLOBAL = 50_000;
1111

1212
const DEBUG_DEVEL_MODE = false;
1313

14-
export let CLIENT_KEEPALIVE = 90000;
15-
export let SERVER_KEEPALIVE = 45000;
16-
export let KEEPALIVE_TIMEOUT = 10000;
14+
export let CLIENT_KEEPALIVE = 90_000;
15+
export let SERVER_KEEPALIVE = 45_000;
16+
export let KEEPALIVE_TIMEOUT = 15_000;
1717

1818
if (DEBUG_DEVEL_MODE) {
1919
console.log(
20-
"*** WARNING: Using DEBUB_DEVEL_MODE changefeed parameters!! ***",
20+
"*** WARNING: Using DEBUG_DEVEL_MODE changefeed parameters!! ***",
2121
);
2222
CLIENT_KEEPALIVE = 6000;
2323
SERVER_KEEPALIVE = 3000;

0 commit comments

Comments
 (0)