aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.h
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2017-07-12 02:40:24 +0000
committerIsis Lovecruft <isis@torproject.org>2017-07-12 03:08:04 +0000
commit9de12397cf4882e83f199616d52ec9c90e0d6d8e (patch)
tree4e4df12410960b2ef7fc01541e38cd7bf3b05ff9 /src/or/config.h
parentf516c9ca99e4c3ef1bfeb3693e622befdd7954d2 (diff)
downloadtor-9de12397cf4882e83f199616d52ec9c90e0d6d8e.tar.gz
tor-9de12397cf4882e83f199616d52ec9c90e0d6d8e.zip
If writing a heartbeat message fails, retry after MIN_HEARTBEAT_PERIOD.
* FIXES #19476.
Diffstat (limited to 'src/or/config.h')
-rw-r--r--src/or/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.h b/src/or/config.h
index 27aec7fe3d..3cfa7c4e5b 100644
--- a/src/or/config.h
+++ b/src/or/config.h
@@ -18,6 +18,10 @@
#define KERNEL_MAY_SUPPORT_IPFW
#endif
+/** Lowest allowable value for HeartbeatPeriod; if this is too low, we might
+ * expose more information than we're comfortable with. */
+#define MIN_HEARTBEAT_PERIOD (30*60)
+
MOCK_DECL(const char*, get_dirportfrontpage, (void));
MOCK_DECL(const or_options_t *, get_options, (void));
MOCK_DECL(or_options_t *, get_options_mutable, (void));