Scastie limits, timeout etc

When using Scastie there does not seem to be a way to kill something that’s taking too long or in an infinite loop. I just have to wait for the timeout. Is that correct? On the other hand the timeout seems to be 30 seconds. Is that hard coded? or can I configure that?

I asked this earlier on discord, but there was no response, so maybe it’s more of a question to ponder.

I actually did reply to you there, but anyways:

When using Scastie there does not seem to be a way to kill something that’s taking too long or in an infinite loop.

Nop

I just have to wait for the timeout.

Yes

On the other hand the timeout seems to be 30 seconds.

Yes

Is that hard coded?

I guess.

can I configure that?

No AFAIK.

1 Like

I took a look at the source code, and it seems there are two timeouts, both hard coded 10 sec + 20 sec. So it is possible, with a source code change to make the timeout larger, or configurable.
But it currently doesn’t seem possible.