diff options
author | Roger Dingledine <arma@torproject.org> | 2010-04-23 18:35:11 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2010-04-23 18:35:11 -0400 |
commit | cb31978adb3d92d304df0c2a408d9f5f75891667 (patch) | |
tree | ea28f4e02f6b05e0b954565b9081300b1bfb18d8 /src/or/main.c | |
parent | 6ad09cc6afa4d620978b6b18f7f134d15903dcc1 (diff) | |
download | tor-cb31978adb3d92d304df0c2a408d9f5f75891667.tar.gz tor-cb31978adb3d92d304df0c2a408d9f5f75891667.zip |
close idle dir-fetch circs early
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 9b57ce8728..04364bbe10 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1058,6 +1058,10 @@ run_scheduled_events(time_t now) if (have_dir_info && !we_are_hibernating()) circuit_build_needed_circs(now); + /* every 10 seconds, but not at the same second as other such events */ + if (now % 10 == 5) + circuit_expire_old_circuits_serverside(now); + /** 5. We do housekeeping for each connection... */ connection_or_set_bad_connections(); for (i=0;i<smartlist_len(connection_array);i++) { |