]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
The crowning hidden-service patch: prefer non-internal circuits
authorRoger Dingledine <arma@torproject.org>
Thu, 20 Jan 2005 07:02:24 +0000 (07:02 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 20 Jan 2005 07:02:24 +0000 (07:02 +0000)
for normal connections, so we don't spend our internal circs on
other stuff and not have them when we need them.

svn:r3380

src/or/circuituse.c

index d7295596d40c22e37b13757440c177cffede13aa..268f17b05713d95c83759c77c6850015f812dfcb 100644 (file)
@@ -117,6 +117,7 @@ static int circuit_is_better(circuit_t *a, circuit_t *b, uint8_t purpose)
           return 1;
       } else {
         if (a->timestamp_dirty ||
+            b->build_state->is_internal ||
             a->timestamp_created > b->timestamp_created)
           return 1;
       }