From ac500b059ac02ff5a104a25d2f5ff9f4848f536d Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Fri, 12 Aug 2011 16:38:36 -0400 Subject: [PATCH] String: set default re subprocess timeout to 0.1, since that should be quite enough. Signed-off-by: James McCoy --- plugins/String/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/String/config.py b/plugins/String/config.py index 3992d9631..6ed4e2c2a 100644 --- a/plugins/String/config.py +++ b/plugins/String/config.py @@ -52,7 +52,7 @@ conf.registerGlobalValue(String.levenshtein, 'max', command.""")) conf.registerGroup(String, 're') conf.registerGlobalValue(String.re, 'timeout', - registry.PositiveFloat(5, """Determines the maximum time, in seconds, that + registry.PositiveFloat(0.1, """Determines the maximum time, in seconds, that a regular expression is given to execute before being terminated. Since there is a possibility that user input for the re command can cause it to eat up large amounts of ram or cpu time, it's a good idea to keep this