DEV: Introduce regex_timeout_seconds global setting (#20774)

This is introduced as `nil` by default. We intend to set a sensible default once we have performed some real-world testing.
This commit is contained in:
David Taylor 2023-03-22 12:01:35 +00:00 committed by GitHub
parent 6406d8e4cb
commit a0140f6f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -371,3 +371,6 @@ pg_force_readonly_mode = false
# default DNS query timeout for FinalDestination (used when not explicitely given programmatically)
dns_query_timeout_secs =
# Default global regex timeout
regex_timeout_seconds =

View File

@ -0,0 +1,4 @@
# frozen_string_literal: true
Regexp.timeout =
GlobalSetting.regex_timeout_seconds.to_i if GlobalSetting.regex_timeout_seconds.present?