diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-11-15 13:16:58 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-26 16:32:40 -0500 |
commit | 3743f7969587079a2f2bb03d0b7e5038557fd64a (patch) | |
tree | af8e96b1be0384be223e96167065e76e96922727 /src/test/test_options.c | |
parent | 53ccdb6945f0d4a9b27a9939211a3c9125ca4427 (diff) | |
download | tor-3743f7969587079a2f2bb03d0b7e5038557fd64a.tar.gz tor-3743f7969587079a2f2bb03d0b7e5038557fd64a.zip |
Add options to control dormant-client feature.
The DormantClientTimeout option controls how long Tor will wait before
going dormant. It also provides a way to disable the feature by setting
DormantClientTimeout to e.g. "50 years".
The DormantTimeoutDisabledByIdleStreams option controls whether open but
inactive streams count as "client activity". To implement it, I had to
make it so that reading or writing on a client stream *always* counts as
activity.
Closes ticket 28429.
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index f14e620eeb..376d77626f 100644 --- a/src/test/test_options.c +++ b/src/test/test_options.c @@ -425,6 +425,7 @@ get_options_test_data(const char *conf) // with options_init(), but about a dozen tests break when I do that. // Being kinda lame and just fixing the immedate breakage for now.. result->opt->ConnectionPadding = -1; // default must be "auto" + result->opt->DormantClientTimeout = 1800; // must be over 600. rv = config_get_lines(conf, &cl, 1); tt_int_op(rv, OP_EQ, 0); |