summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-08-20 04:36:37 +0000
committerAndrea Shepard <andrea@torproject.org>2016-08-20 04:36:37 +0000
commit31028af4404c06088ea1eb47309ce8c3154150f1 (patch)
tree078321394a33d1da1cf737ca67631e0c04e241f4 /src/or/connection.c
parent3efe92ba58137022dd6c61cff9823813218a1a14 (diff)
downloadtor-31028af4404c06088ea1eb47309ce8c3154150f1.tar.gz
tor-31028af4404c06088ea1eb47309ce8c3154150f1.zip
Add DisableOOSCheck option, on by default until we have better heuristics
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 6b85bfb550..daa11eeb57 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -4673,6 +4673,11 @@ connection_check_oos(int n_socks, int failed)
int target_n_socks = 0, moribund_socks, socks_to_kill;
smartlist_t *conns;
+ /* Early exit: is OOS checking disabled? */
+ if (get_options()->DisableOOSCheck) {
+ return;
+ }
+
/* Sanity-check args */
tor_assert(n_socks >= 0);