diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-08-20 04:36:37 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-08-20 04:36:37 +0000 |
commit | 31028af4404c06088ea1eb47309ce8c3154150f1 (patch) | |
tree | 078321394a33d1da1cf737ca67631e0c04e241f4 /src/or/connection.c | |
parent | 3efe92ba58137022dd6c61cff9823813218a1a14 (diff) | |
download | tor-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.c | 5 |
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); |