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.

Posé le 2022-11-28 08:29:00

RÉPONSE OFFICIELLE

 

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...

\{_{ ...}
Réponse de:
Etienne Carrier

Répondu le : 2022-11-28 10:12:00