@aikidosec/broker-client 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/streaming/state.js +3 -3
- package/package.json +1 -1
package/app/streaming/state.js
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// Chunk size for streaming responses (10MB before base64 encoding)
|
|
6
|
-
export const STREAM_CHUNK_SIZE =
|
|
6
|
+
export const STREAM_CHUNK_SIZE = 30 * 1024 * 1024;
|
|
7
7
|
|
|
8
8
|
// Global maximum buffer size across ALL streams
|
|
9
|
-
export const GLOBAL_MAX_BUFFER_SIZE = STREAM_CHUNK_SIZE * 30; //
|
|
9
|
+
export const GLOBAL_MAX_BUFFER_SIZE = STREAM_CHUNK_SIZE * 30; // 900MB
|
|
10
10
|
|
|
11
11
|
// Per-stream maximum buffer size
|
|
12
|
-
export const PER_STREAM_MAX_BUFFER_SIZE = STREAM_CHUNK_SIZE *
|
|
12
|
+
export const PER_STREAM_MAX_BUFFER_SIZE = STREAM_CHUNK_SIZE * 5; // 150MB
|
|
13
13
|
|
|
14
14
|
// Threshold for using streaming vs direct response
|
|
15
15
|
export const STREAMING_THRESHOLD = STREAM_CHUNK_SIZE;
|
package/package.json
CHANGED