From 6b1dba214db3058b143bbb4d4c4bdfee32d100f1 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 15 Feb 2018 13:45:21 -0500 Subject: cmux: Make EWMA policy mandatory To achieve this, a default value for the CircuitPriorityHalflife option was needed. We still look in the options and then the consensus but in case no value can be found, the default CircuitPriorityHalflifeMsec=30000 is used. It it the value we've been using since 0.2.4.4-alpha. This means that EWMA, our only policy, can not be disabled anymore fallbacking to the round robin algorithm. Unneeded code to control that is removed in this commit. Part of #25268 Signed-off-by: David Goulet --- src/or/channel.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/or/channel.c') diff --git a/src/or/channel.c b/src/or/channel.c index ff1cfde2ad..a9483ee021 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -2108,21 +2108,6 @@ channel_listener_dumpstats(int severity) } } -/** - * Set the cmux policy on all active channels. - */ -void -channel_set_cmux_policy_everywhere(circuitmux_policy_t *pol) -{ - if (!active_channels) return; - - SMARTLIST_FOREACH_BEGIN(active_channels, channel_t *, curr) { - if (curr->cmux) { - circuitmux_set_policy(curr->cmux, pol); - } - } SMARTLIST_FOREACH_END(curr); -} - /** * Clean up channels. * -- cgit v1.2.3-54-g00ecf