From ffc25791cab43860101b3ad727bfe7c61b57eeee Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 5 Aug 2020 01:19:24 +0300 Subject: [PATCH] Raise regex timeout from 100ms to 250ms --- backend/src/RegExpRunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/RegExpRunner.ts b/backend/src/RegExpRunner.ts index 9903859e..d666dda8 100644 --- a/backend/src/RegExpRunner.ts +++ b/backend/src/RegExpRunner.ts @@ -21,7 +21,7 @@ export function allowTimeout(err: RegExpTimeoutError | Error) { throw err; } -const REGEX_TIMEOUT = 100; // ms +const REGEX_TIMEOUT = 250; // ms const REGEX_FAIL_TO_COOLDOWN_COUNT = 3; // If a regex fails this many times, it goes on cooldown... const REGEX_FAIL_COOLDOWN = 5 * MINUTES; // ...for this long