From: Roger Dingledine Date: Thu, 20 Jan 2005 07:02:24 +0000 (+0000) Subject: The crowning hidden-service patch: prefer non-internal circuits X-Git-Tag: tor-0.1.0.1-rc~441 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6e91f8157dff8f7f7c0d716bb1ab104195eca5e;p=thirdparty%2Ftor.git 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 --- diff --git a/src/or/circuituse.c b/src/or/circuituse.c index d7295596d4..268f17b057 100644 --- a/src/or/circuituse.c +++ b/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; }