Ticket #2355: tor-04-quick_circ_rebuild_with_bridges.patch

File tor-04-quick_circ_rebuild_with_bridges.patch, 575 bytes (added by anonym, 8 years ago)

Rebuild circuits quickly if they have been abandoned (by changing bridge settings, for instance).

  • src/or/main.c

    diff --git a/src/or/main.c b/src/or/main.c
    index 295cec0..cd73917 100644
    a b run_scheduled_events(time_t now) 
    13771377   *    and we make a new circ if there are no clean circuits.
    13781378   */
    13791379  have_dir_info = router_have_minimum_dir_info();
    1380   if (have_dir_info && !we_are_hibernating())
     1380  if (have_dir_info && !we_are_hibernating() &&
     1381      (!options->EffectiveUseBridges || any_bridge_descriptors_known()))
    13811382    circuit_build_needed_circs(now);
    13821383
    13831384  /* every 10 seconds, but not at the same second as other such events */