Skip to content

Commit 0fd59f1

Browse files
committed
also change the throttling params for terminal
1 parent 7af7eac commit 0fd59f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packages/project/nats/terminal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ const HISTORY_LIMIT_BYTES = parseInt(
4545

4646
// Limit number of MB/s in data:
4747
const MAX_BYTES_PER_SECOND = parseInt(
48-
process.env.COCALC_TERMINAL_MAX_BYTES_PER_SECOND ?? "2000000",
48+
process.env.COCALC_TERMINAL_MAX_BYTES_PER_SECOND ?? "500000",
4949
);
5050

5151
// Limit number of messages per second (not doing this makes it easy
5252
// to cause trouble to the server)
5353
const MAX_MSGS_PER_SECOND = parseInt(
54-
process.env.COCALC_TERMINAL_MAX_MSGS_PER_SECOND ?? "250",
54+
process.env.COCALC_TERMINAL_MAX_MSGS_PER_SECOND ?? "100",
5555
);
5656

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

0 commit comments

Comments
 (0)