Re:Python, Catastrophic Regular Expressions and the GIL (2013)
by Alex3917 on Monday November 14, 2022 @07:17AM
(#33592958)
While atomic grouping can prevent this from happening again once you've already found the problem, the real solution is just making sure there is a timeout on your web process. That way even if you hit catastrophic backtracking, your servers aren't going to be unavailable unless someone is purposely reDOSing them.
[ Parent
| on HN ]
There are no comments on this comment yet.