timeout
This commit is contained in:
parent
d9bc349b2c
commit
016c1be6d0
1 changed files with 1 additions and 1 deletions
2
index.js
2
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) {
|
||||
|
|
Loading…
Reference in a new issue