Add options to control dormant-client feature.
commit3743f7969587079a2f2bb03d0b7e5038557fd64a
authorNick Mathewson <nickm@torproject.org>
Thu, 15 Nov 2018 18:16:58 +0000 (15 13:16 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 26 Nov 2018 21:32:40 +0000 (26 16:32 -0500)
treeaf8e96b1be0384be223e96167065e76e96922727
parent53ccdb6945f0d4a9b27a9939211a3c9125ca4427
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.
doc/tor.1.txt
src/app/config/config.c
src/app/config/or_options_st.h
src/core/mainloop/mainloop.c
src/core/or/connection_edge.c
src/test/test_options.c