Open LyesSaadi opened 3 years ago
I implemented a solution to make a time limit in the online editor and I thought it worked at first but somehow the asynchronous task keeps running in my server even though the user gets a time exceed message. I have to fix that before and I don't know how to stop an asynchronous Task in C# (I still don't understand asynchronous code well 😅)
Well, no one understands async, it's like quantum mechanics, so I totally understand :laughing:!
But yeah, people abusing online code execution is an issue as old as the Internet itself :stuck_out_tongue:! An execution time limit is the only solution for preventing this (and that's the way most online compilers do, like Rust's Playground).
It was temporarily intended since someone abused madem loop and ran infinite loops in my server and took it down 15 times 😅