[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/release-0.3.3] relay: Remove max middle cells dead code
commit 3d5bf12ac24bfbabad5f14c6cd45373b227d2816
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date: Tue Mar 20 14:58:12 2018 -0400
relay: Remove max middle cells dead code
Next commit is addressing the circuit queue cell limit so cleanup before doing
anything else.
Part of #25226
Signed-off-by: David Goulet <dgoulet@xxxxxxxxxxxxxx>
---
src/or/or.h | 6 ------
src/or/relay.c | 3 ---
2 files changed, 9 deletions(-)
diff --git a/src/or/or.h b/src/or/or.h
index 2397f6651..8fcba42ad 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3524,12 +3524,6 @@ typedef struct or_circuit_t {
* exit-ward queues of this circuit; reset every time when writing
* buffer stats to disk. */
uint64_t total_cell_waiting_time;
-
- /** Maximum cell queue size for a middle relay; this is stored per circuit
- * so append_cell_to_circuit_queue() can adjust it if it changes. If set
- * to zero, it is initialized to the default value.
- */
- uint32_t max_middle_cells;
} or_circuit_t;
#if REND_COOKIE_LEN != DIGEST_LEN
diff --git a/src/or/relay.c b/src/or/relay.c
index 506b7eccb..c8e0a2e61 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -99,9 +99,6 @@ static void adjust_exit_policy_from_exitpolicy_failure(origin_circuit_t *circ,
entry_connection_t *conn,
node_t *node,
const tor_addr_t *addr);
-#if 0
-static int get_max_middle_cells(void);
-#endif
/** Stop reading on edge connections when we have this many cells
* waiting on the appropriate queue. */
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits