From b3f6b55ea11e548c4febcaf946e7d66ee8b9b7ee Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 21 Mar 2004 05:01:06 +0000 Subject: Dont expire circuits we didnt originate. This may be redundant somehow, but better safe than sorry. svn:r1331 --- src/or/circuit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/or/circuit.c b/src/or/circuit.c index c4f51e79a..225c8e37c 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -926,6 +926,7 @@ void circuit_expire_unused_circuits(void) { if(((tmpcirc->timestamp_dirty && tmpcirc->timestamp_dirty + options.NewCircuitPeriod < now) || (options.RunTesting && + tmpcirc->cpath && tmpcirc->timestamp_created + TESTING_CIRCUIT_MAX_AGE < now)) && !tmpcirc->p_conn && !tmpcirc->p_streams -- cgit v1.2.3