@testdriverai/runner 7.8.0-test.43 → 7.8.0-test.45
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/lib/automation.js +7 -4
- package/package.json +1 -1
package/lib/automation.js
CHANGED
|
@@ -525,11 +525,14 @@ class Automation extends EventEmitter {
|
|
|
525
525
|
const timeout = Math.ceil((data.timeout || 300000) / 1000); // ms to seconds
|
|
526
526
|
const requestId = data.requestId;
|
|
527
527
|
|
|
528
|
-
// Buffer stdout chunks to ~
|
|
528
|
+
// Buffer stdout chunks to ~32KB before emitting over Ably.
|
|
529
529
|
// This reduces message count while keeping each message well under
|
|
530
|
-
// Ably's 64KB limit.
|
|
531
|
-
//
|
|
532
|
-
|
|
530
|
+
// Ably's 64KB limit. 32KB leaves headroom for the JSON envelope +
|
|
531
|
+
// string escaping while halving the message count vs the previous
|
|
532
|
+
// 16KB size, helping avoid Ably's per-channel rate limit on verbose
|
|
533
|
+
// commands. The SDK accumulates these chunks and reconstructs the
|
|
534
|
+
// full stdout — the final response only carries returncode + stderr.
|
|
535
|
+
const CHUNK_FLUSH_SIZE = 32 * 1024; // 32KB
|
|
533
536
|
let chunkBuffer = '';
|
|
534
537
|
const flushChunkBuffer = () => {
|
|
535
538
|
if (chunkBuffer.length > 0) {
|