From 016c1be6d069f33284630d26083f7ee29a474708 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sat, 16 Sep 2023 18:02:53 +0700 Subject: [PATCH] timeout --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d265bff..1213286 100644 --- a/index.js +++ b/index.js @@ -75,7 +75,7 @@ io.on('connection', (socket) => { socket.on('runCode', async (transactionId, code) => { try { - const output = await context.eval(code, { timeout: 3000 }) + const output = await context.eval(code, { timeout: 1000 }) socket.emit('codeOutput', transactionId, false, util.inspect(output, { stylize })) } catch (e) {