Преглед изворни кода

call circuit_expire_all_dirty_circs() on do_hup().
there, now we use it.


svn:r5202

Roger Dingledine пре 20 година
родитељ
комит
f12663a4ce
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      src/or/main.c

+ 6 - 0
src/or/main.c

@@ -943,6 +943,12 @@ do_hup(void)
       log_fn(LOG_NOTICE, "Error reloading fingerprints. Continuing with old list.");
     }
   }
+
+  /* Rotate away from the old dirty circuits. This has to be done
+   * after we've read the new options, but before we start using
+   * circuits for directory fetches. */
+  circuit_expire_all_dirty_circs();
+
   /* retry appropriate downloads */
   router_reset_status_download_failures();
   router_reset_descriptor_download_failures();