Goto main content

help desk

Is there a way to timeout a loop while developping to avoid puting the server in overload.

While testing a request, I realised the server was slowing down. 
Might be because is falling into a loop.

Asked on 2022-11-28 08:29:00

OFFICIAL ANSWER

If you are coding something which runs looping, code 1st at staging and put timelimit
 

/staging/secure/test/(your nick)/code.sn

Ex:

{_{
void timeout(10); // 10s
}}

Or if dynamic...

\{_{ ...}
Answer by:
Etienne Carrier

Replied on: 2022-11-28 10:12:00