mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 22:25:51 +01:00
start sending 'truncated' cells back rather than destroy cells,
if the circuit closes in front of you. svn:r3993
This commit is contained in:
parent
0dc02328af
commit
096879687a
1 changed files with 3 additions and 4 deletions
|
@ -309,14 +309,13 @@ static void command_process_destroy_cell(cell_t *cell, connection_t *conn) {
|
|||
circuit_mark_for_close(circ);
|
||||
} else { /* the destroy came from ahead */
|
||||
circ->n_conn = NULL;
|
||||
#if 0
|
||||
if (!CIRCUIT_IS_ORIGIN(circ)) {
|
||||
if (CIRCUIT_IS_ORIGIN(circ)) {
|
||||
circuit_mark_for_close(circ);
|
||||
} else {
|
||||
log_fn(LOG_DEBUG, "Delivering 'truncated' back.");
|
||||
connection_edge_send_command(NULL, circ, RELAY_COMMAND_TRUNCATED,
|
||||
NULL, 0, NULL);
|
||||
}
|
||||
#endif
|
||||
circuit_mark_for_close(circ);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue