Browse Source

Bug 8477: Don't warn if fromerly GENERAL circuits still have streams.

This can happen in various cases of network failure.
Mike Perry 11 years ago
parent
commit
f6a2f088fd
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/or/connection_edge.c

+ 3 - 1
src/or/connection_edge.c

@@ -651,7 +651,9 @@ connection_ap_expire_beginning(void)
       }
       continue;
     }
-    if (circ->purpose != CIRCUIT_PURPOSE_C_GENERAL) {
+    if (circ->purpose != CIRCUIT_PURPOSE_C_GENERAL &&
+        circ->purpose != CIRCUIT_PURPOSE_C_MEASURE_TIMEOUT &&
+        circ->purpose != CIRCUIT_PURPOSE_PATH_BIAS_TESTING) {
       log_warn(LD_BUG, "circuit->purpose == CIRCUIT_PURPOSE_C_GENERAL failed. "
                "The purpose on the circuit was %s; it was in state %s, "
                "path_state %s.",