]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Bug 8477: Don't warn if fromerly GENERAL circuits still have streams.
authorMike Perry <mikeperry-git@fscked.org>
Tue, 26 Mar 2013 18:43:40 +0000 (11:43 -0700)
committerNick Mathewson <nickm@torproject.org>
Fri, 29 Mar 2013 16:20:54 +0000 (12:20 -0400)
This can happen in various cases of network failure.

src/or/connection_edge.c

index 9c39c25219a3fd16c3a674a80dad3ecd185ac265..5075c474a35b2ee482bd83f9f9fa937a9dddfbe6 100644 (file)
@@ -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.",