Merge "Limit the timeout value of heartbeat_timeout"
This commit is contained in:
commit
10bf5d5c2a
@ -41,6 +41,9 @@ opts = [
|
|||||||
'http:// or https://.')),
|
'http:// or https://.')),
|
||||||
cfg.IntOpt('heartbeat_timeout',
|
cfg.IntOpt('heartbeat_timeout',
|
||||||
default=60,
|
default=60,
|
||||||
|
# We're using timedelta which can overflow if somebody sets this
|
||||||
|
# too high, so limit to a sane value of 10 years.
|
||||||
|
max=315576000,
|
||||||
help=_('Maximum time (in seconds) since the last check-in '
|
help=_('Maximum time (in seconds) since the last check-in '
|
||||||
'of a conductor. A conductor is considered inactive '
|
'of a conductor. A conductor is considered inactive '
|
||||||
'when this time has been exceeded.')),
|
'when this time has been exceeded.')),
|
||||||
|
Loading…
Reference in New Issue
Block a user