Reply to post: Re: This is an important lesson in the testability of regular expressions

Cloudflare gave everyone a 30-minute break from a chunk of the internet yesterday: Here's how they did it

Lee D Silver badge

Re: This is an important lesson in the testability of regular expressions

Seems to me like what they need is a limit or timeout on how long regex's can take - alerting and terminating if they go over.

You don't need fancy tech. What you need is not to swamp 100% CPU on huge multicore devices when you could have just said "Has this regex taken more than 10ms to execute? Then kill it and tell the admin so we don't fall over globally".

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon