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

This can happen in various cases of network failure.
This commit is contained in:
Mike Perry 2013-03-26 11:43:40 -07:00 committed by Nick Mathewson
parent a7d6683629
commit f6a2f088fd

View 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.",