mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 15:23:27 +01:00
On sighup, if usehelpernodes changed to 1, use new circuits.
svn:r5203
This commit is contained in:
parent
f12663a4ce
commit
ba67d14d40
2
doc/TODO
2
doc/TODO
@ -57,7 +57,7 @@ N . Additional controller features
|
|||||||
|
|
||||||
. Helper nodes
|
. Helper nodes
|
||||||
. More testing and debugging
|
. More testing and debugging
|
||||||
- On sighup, if usehelpernodes changed to 1, use new circuits?
|
o On sighup, if usehelpernodes changed to 1, use new circuits?
|
||||||
- If your helper nodes are unavailable, don't abandon them unless
|
- If your helper nodes are unavailable, don't abandon them unless
|
||||||
other nodes *are* reachable.
|
other nodes *are* reachable.
|
||||||
R - If you think an OR conn is open but you can never establish a circuit
|
R - If you think an OR conn is open but you can never establish a circuit
|
||||||
|
@ -623,6 +623,12 @@ options_act(or_options_t *old_options)
|
|||||||
|
|
||||||
/* Check for transitions that need action. */
|
/* Check for transitions that need action. */
|
||||||
if (old_options) {
|
if (old_options) {
|
||||||
|
if (options->UseHelperNodes && !old_options->UseHelperNodes) {
|
||||||
|
log_fn(LOG_INFO, "Switching to helper nodes; abandoning previous circuits");
|
||||||
|
circuit_mark_all_unused_circs();
|
||||||
|
circuit_expire_all_dirty_circs();
|
||||||
|
}
|
||||||
|
|
||||||
if (options_transition_affects_workers(old_options, options)) {
|
if (options_transition_affects_workers(old_options, options)) {
|
||||||
log_fn(LOG_INFO,"Worker-related options changed. Rotating workers.");
|
log_fn(LOG_INFO,"Worker-related options changed. Rotating workers.");
|
||||||
cpuworkers_rotate();
|
cpuworkers_rotate();
|
||||||
|
Loading…
Reference in New Issue
Block a user