diff options
author | Roger Dingledine <arma@torproject.org> | 2004-05-15 07:21:25 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-05-15 07:21:25 +0000 |
commit | 04bb8c804677f1ba1aa0212e34c19869c853a1e4 (patch) | |
tree | cf8f985ef65fdec95173266b4124a83844aa3f6d /src/or/circuituse.c | |
parent | 09a47485782d6d8183305b217416030e0b0e316a (diff) | |
download | tor-04bb8c804677f1ba1aa0212e34c19869c853a1e4.tar.gz tor-04bb8c804677f1ba1aa0212e34c19869c853a1e4.zip |
bugfix: if a circuit if borderline too old, then count it as too old.
bugfix: we were retrying the same circuit after getting a resolve
failure. so of course the next two tries would fail too. now we try
a new circuit each time (at most three times).
svn:r1867
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 1374f0a50c..35bfb968d3 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -56,7 +56,7 @@ static int circuit_is_acceptable(circuit_t *circ, if(purpose == CIRCUIT_PURPOSE_C_GENERAL) if(circ->timestamp_dirty && - circ->timestamp_dirty+options.NewCircuitPeriod < now) + circ->timestamp_dirty+options.NewCircuitPeriod <= now) return 0; if(conn) { |