aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2015-08-17 14:34:50 -0400
committerRoger Dingledine <arma@torproject.org>2015-08-17 14:34:50 -0400
commitb4732bd2eab74f6b4a3611c13521d261679d924a (patch)
tree58767a2816c5c7e46d9ba0332c7842872dc2ec29 /src/or/relay.c
parent7f9a33a800b0d399942ca0aa98c05a71d08926b4 (diff)
downloadtor-b4732bd2eab74f6b4a3611c13521d261679d924a.tar.gz
tor-b4732bd2eab74f6b4a3611c13521d261679d924a.zip
Logs and debug info that I used for finding bug 16844
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index be09c959c1..eddad6a0cb 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -209,8 +209,7 @@ circuit_receive_relay_cell(cell_t *cell, circuit_t *circ,
return 0;
}
- conn = relay_lookup_conn(circ, cell, cell_direction,
- layer_hint);
+ conn = relay_lookup_conn(circ, cell, cell_direction, layer_hint);
if (cell_direction == CELL_DIRECTION_OUT) {
++stats_n_relay_cells_delivered;
log_debug(LD_OR,"Sending away from origin.");
@@ -1306,7 +1305,10 @@ connection_edge_process_relay_cell_not_open(
return 0;
}
conn->base_.state = AP_CONN_STATE_OPEN;
- log_info(LD_APP,"'connected' received after %d seconds.",
+ log_info(LD_APP,"'connected' received for circid %u streamid %d "
+ "after %d seconds.",
+ (unsigned)circ->n_circ_id,
+ rh->stream_id,
(int)(time(NULL) - conn->base_.timestamp_lastread));
if (connected_cell_parse(rh, cell, &addr, &ttl) < 0) {
log_fn(LOG_PROTOCOL_WARN, LD_APP,
@@ -1699,7 +1701,9 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
return -END_CIRC_REASON_TORPROTOCOL;
}
log_info(domain,
- "'connected' received, no conn attached anymore. Ignoring.");
+ "'connected' received on circid %u for streamid %d, "
+ "no conn attached anymore. Ignoring.",
+ (unsigned)circ->n_circ_id, rh.stream_id);
return 0;
case RELAY_COMMAND_SENDME:
if (!rh.stream_id) {