diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-01-24 09:01:25 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-01-24 09:01:25 -0500 |
commit | fae4d3d9250ecc6cd34a70b642009bf8923a51f4 (patch) | |
tree | 5f5e1ee154cef6ec7e2937c9008cc283c55e41b5 /src/or/channel.c | |
parent | d95d9889463fcab0eac742b1634d64f1e8b4328a (diff) | |
parent | b047d97b281ef7ab9a27069b876bceca3d5a002e (diff) | |
download | tor-fae4d3d9250ecc6cd34a70b642009bf8923a51f4.tar.gz tor-fae4d3d9250ecc6cd34a70b642009bf8923a51f4.zip |
Merge remote-tracking branch 'asn/remove_legacy_guards'
Diffstat (limited to 'src/or/channel.c')
-rw-r--r-- | src/or/channel.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index dbf442eca0..45f1602ab2 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -2577,19 +2577,6 @@ channel_do_open_actions(channel_t *chan) if (started_here) { circuit_build_times_network_is_live(get_circuit_build_times_mutable()); rep_hist_note_connect_succeeded(chan->identity_digest, now); -#ifdef ENABLE_LEGACY_GUARD_ALGORITHM - // XXXX prop271 this call is no longer useful with the new algorithm. - if (entry_guard_register_connect_status( - chan->identity_digest, 1, 0, now) < 0) { - /* Close any circuits pending on this channel. We leave it in state - * 'open' though, because it didn't actually *fail* -- we just - * chose not to use it. */ - log_debug(LD_OR, - "New entry guard was reachable, but closing this " - "connection so we can retry the earlier entry guards."); - close_origin_circuits = 1; - } -#endif router_set_status(chan->identity_digest, 1); } else { /* only report it to the geoip module if it's not a known router */ |