Skip to content

Commit 51e388d

Browse files
committed
raise number of messages a second default for terminals -- 100 is way too easy to hit doing safe things
1 parent 8709b26 commit 51e388d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/packages/project/nats/terminal.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ const MAX_BYTES_PER_SECOND = parseInt(
4848
process.env.COCALC_TERMINAL_MAX_BYTES_PER_SECOND ?? "500000",
4949
);
5050

51-
// Limit number of messages per second (not doing this makes it easy
52-
// to cause trouble to the server)
51+
// Limit number of messages per second.
5352
const MAX_MSGS_PER_SECOND = parseInt(
54-
process.env.COCALC_TERMINAL_MAX_MSGS_PER_SECOND ?? "100",
53+
process.env.COCALC_TERMINAL_MAX_MSGS_PER_SECOND ?? "250",
5554
);
5655

5756
const sessions: { [path: string]: Session } = {};

0 commit comments

Comments
 (0)