String: set default re subprocess timeout to 0.1, since that should be quite enough.

This commit is contained in:
Daniel Folkinshteyn 2011-08-12 16:38:36 -04:00
parent 57884bba57
commit 47fdfe2e9a

View File

@ -52,7 +52,7 @@ conf.registerGlobalValue(String.levenshtein, 'max',
command.""")) command."""))
conf.registerGroup(String, 're') conf.registerGroup(String, 're')
conf.registerGlobalValue(String.re, 'timeout', 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 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 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 eat up large amounts of ram or cpu time, it's a good idea to keep this