diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-15 22:52:41 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-15 22:52:41 +0900 |
| commit | 230481b9885b04135d4014e5b15d93b6336eb420 (patch) | |
| tree | 66c3eb201b2a0fb94cd235ca7d87f7ca8522b9fa | |
| parent | f9f5b7b5c51b2141540f4b5d96c357c9de1d010f (diff) | |
| download | phperkaigi-2025-albatross-230481b9885b04135d4014e5b15d93b6336eb420.tar.gz phperkaigi-2025-albatross-230481b9885b04135d4014e5b15d93b6336eb420.tar.zst phperkaigi-2025-albatross-230481b9885b04135d4014e5b15d93b6336eb420.zip | |
feat(worker): increase buffer size of stdout/stderr
| -rw-r--r-- | worker/exec.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/exec.mjs b/worker/exec.mjs index 81dba8b..d8ca899 100644 --- a/worker/exec.mjs +++ b/worker/exec.mjs @@ -20,7 +20,7 @@ process.once("message", async ({ code: originalCode, input }) => { code = PRELUDE + originalCode; } - const BUFFER_MAX = 1024; + const BUFFER_MAX = 10 * 1024; let stdinPos = 0; // bytewise const stdinBuf = Buffer.from(input); |
