diff options
author | Matt Traudt <sirmatt@ksu.edu> | 2017-07-10 10:47:56 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-09-15 11:40:59 -0400 |
commit | b2c56eacdd61429f17b9e14db665592ac4453c50 (patch) | |
tree | e4c90d91d4cc38be7131cee84a57643ae4cbde0f /src/or/or.h | |
parent | 91c7bebfa27efe059c29dbeac935942e2cc32c86 (diff) | |
download | tor-b2c56eacdd61429f17b9e14db665592ac4453c50.tar.gz tor-b2c56eacdd61429f17b9e14db665592ac4453c50.zip |
sched: Remove vanilla sched options that will be going away
- massive change to src/tgest/test_options.c since the sched options
were added all over the place in it
- removing the sched options caused some tests to pass/fail in new ways
so I assumed current behavior is correct and made them pass again
- ex: "ConnLimit must be greater" lines
- ex: "Authoritative directory servers must" line
- remove test_options_validate__scheduler in prep for new sched tests
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/or/or.h b/src/or/or.h index 5a543b498c..7116fbac76 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -4535,19 +4535,6 @@ typedef struct { /** How long (seconds) do we keep a guard before picking a new one? */ int GuardLifetime; - /** Low-water mark for global scheduler - start sending when estimated - * queued size falls below this threshold. - */ - uint64_t SchedulerLowWaterMark__; - /** High-water mark for global scheduler - stop sending when estimated - * queued size exceeds this threshold. - */ - uint64_t SchedulerHighWaterMark__; - /** Flush size for global scheduler - flush this many cells at a time - * when sending. - */ - int SchedulerMaxFlushCells__; - /** Is this an exit node? This is a tristate, where "1" means "yes, and use * the default exit policy if none is given" and "0" means "no; exit policy * is 'reject *'" and "auto" (-1) means "same as 1, but warn the user." @@ -4620,6 +4607,15 @@ typedef struct { /** Bool (default: 0). Tells Tor to never try to exec another program. */ int NoExec; + + /** Have the KIST scheduler run every X milliseconds. If less than zero, do + * not use the KIST scheduler but use the old vanilla scheduler instead. If + * zero, do what the consensus says and fall back to using KIST as if this is + * set to "10 msec" if the consensus doesn't say anything. */ + int64_t KISTSchedRunInterval; + + /** A multiplier for the KIST per-socket limit calculation. */ + double KISTSockBufSizeFactor; } or_options_t; /** Persistent state for an onion router, as saved to disk. */ |