My demo of the Python regex tester (http://ksamuel.pythonanywhere.com/) is vulnerable to bad users entries.
This is just a demo, beginers use it to learn regex, and sometimes they just write a bad one, with so many backreferences that it kills the process.
There is no good way to prevent that: - you can't find all edge cases with regex. - regex aquire the Python GIL, so you cannot use threads, signals, or else.
I looking to either:
- reload the web app when the user hit a 500
- reload the web app every 20 minutes
Can you help me with that ?