Explorar o código

The crowning hidden-service patch: prefer non-internal circuits
for normal connections, so we don't spend our internal circs on
other stuff and not have them when we need them.


svn:r3380

Roger Dingledine %!s(int64=21) %!d(string=hai) anos
pai
achega
a6e91f8157
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/or/circuituse.c

+ 1 - 0
src/or/circuituse.c

@@ -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;
       }