[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] On sighup, if usehelpernodes changed to 1, use new circuits.
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv18007/src/or
Modified Files:
config.c
Log Message:
On sighup, if usehelpernodes changed to 1, use new circuits.
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.428
retrieving revision 1.429
diff -u -d -r1.428 -r1.429
--- config.c 4 Oct 2005 21:21:09 -0000 1.428
+++ config.c 5 Oct 2005 23:02:40 -0000 1.429
@@ -623,6 +623,12 @@
/* Check for transitions that need action. */
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)) {
log_fn(LOG_INFO,"Worker-related options changed. Rotating workers.");
cpuworkers_rotate();