aboutsummaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-11-01 06:13:12 +0000
committerRoger Dingledine <arma@torproject.org>2005-11-01 06:13:12 +0000
commit40ecaf4857940093b3dd501993e0ae5fc6a5384d (patch)
tree604ef3ef6c0866931368b078b7ab628951c83913 /src/or/cpuworker.c
parentc68cadc0c8d29866a2ce8fd664165c90cab532aa (diff)
downloadtor-40ecaf4857940093b3dd501993e0ae5fc6a5384d.tar.gz
tor-40ecaf4857940093b3dd501993e0ae5fc6a5384d.zip
answer nick's XXX, and muck with some log domain choices
svn:r5339
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index d5f2e45998..69811b0eba 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -163,13 +163,17 @@ connection_cpu_process_inbuf(connection_t *conn)
circ = circuit_get_by_circid_orconn(circ_id, p_conn);
if (success == 0) {
- debug(LD_OR,"decoding onionskin failed. (Old key or bad sw.) Closing.");
+ debug(LD_OR,"decoding onionskin failed. (Old key or bad software.) Closing.");
if (circ)
circuit_mark_for_close(circ);
goto done_processing;
}
if (!circ) {
- /*XXXX Why does this happen?*/
+ /* This happens because somebody sends us a destroy cell and the
+ * circuit goes away, while the cpuworker is working. This is also
+ * why our tag doesn't include a pointer to the circ, because we'd
+ * never know if it's still valid.
+ */
debug(LD_OR,"processed onion for a circ that's gone. Dropping.");
goto done_processing;
}
@@ -259,7 +263,7 @@ cpuworker_main(void *data)
}
if (read_all(fd, question, ONIONSKIN_CHALLENGE_LEN, 1) != ONIONSKIN_CHALLENGE_LEN) {
- info(LD_BUG,"read question failed. Exiting.");
+ err(LD_BUG,"read question failed. Exiting.");
goto end;
}