summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-30 10:43:44 +0000
committerAndrea Shepard <andrea@torproject.org>2016-08-20 01:43:46 +0000
commit34d9d02150fc41107887c27900a62c4552578789 (patch)
tree27cc8a1e40cb98bb87d1488ea6a2bc92eb75190c /src/or/config.c
parent1c0c0022d8199a9b998a0c4e13a85a382abf7fb0 (diff)
downloadtor-34d9d02150fc41107887c27900a62c4552578789.tar.gz
tor-34d9d02150fc41107887c27900a62c4552578789.zip
Stub out connection_handle_oos() and call it from places we can change the socket count or thresholds
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 33c80e52b0..f7a7a534b7 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1358,6 +1358,9 @@ options_act_reversible(const or_options_t *old_options, char **msg)
options->ConnLimit, options->ConnLimit_,
options->ConnLimit_high_thresh,
options->ConnLimit_low_thresh);
+
+ /* Give the OOS handler a chance with the new thresholds */
+ connection_handle_oos(get_n_open_sockets(), 0);
}
goto done;