summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-03-19 06:01:02 -0400
committerNick Mathewson <nickm@torproject.org>2018-03-19 06:01:02 -0400
commita324cd9020b3f088c90091f0b57292bd23072f2b (patch)
tree5652dcc41f6b8e43fa982aefbca631c169cadc13 /src/or/networkstatus.c
parent267671bdaaa079e0c1757ad689f7c54f24ac71ab (diff)
parent4449c9e8fe7b11ec816762c8b37b1ed70d873d4a (diff)
downloadtor-a324cd9020b3f088c90091f0b57292bd23072f2b.tar.gz
tor-a324cd9020b3f088c90091f0b57292bd23072f2b.zip
Merge branch 'ticket25268_034_01'
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 87825e7194..72b96753cb 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -1768,7 +1768,6 @@ networkstatus_set_current_consensus(const char *consensus,
consensus_waiting_for_certs_t *waiting = NULL;
time_t current_valid_after = 0;
int free_consensus = 1; /* Free 'c' at the end of the function */
- int old_ewma_enabled;
int checked_protocols_already = 0;
if (flav < 0) {
@@ -2001,17 +2000,8 @@ networkstatus_set_current_consensus(const char *consensus,
/* XXXXNM Microdescs: needs a non-ns variant. ???? NM*/
update_consensus_networkstatus_fetch_time(now);
- /* Update ewma and adjust policy if needed; first cache the old value */
- old_ewma_enabled = cell_ewma_enabled();
/* Change the cell EWMA settings */
- cell_ewma_set_scale_factor(options, c);
- /* If we just enabled ewma, set the cmux policy on all active channels */
- if (cell_ewma_enabled() && !old_ewma_enabled) {
- channel_set_cmux_policy_everywhere(&ewma_policy);
- } else if (!cell_ewma_enabled() && old_ewma_enabled) {
- /* Turn it off everywhere */
- channel_set_cmux_policy_everywhere(NULL);
- }
+ cmux_ewma_set_options(options, c);
/* XXXX this call might be unnecessary here: can changing the
* current consensus really alter our view of any OR's rate limits? */