aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-04-17 10:45:58 -0400
committerNick Mathewson <nickm@torproject.org>2018-04-17 10:45:58 -0400
commitc5bbf72fb81eb8369178d61e990c14a9e631e419 (patch)
treebcad9ede4ebb9c1cb8c7f2fa1ef7222c9ed5681f /src/or/relay.c
parentc32108ee0fea851ced14f71d842390992f762393 (diff)
parent93ff1870ba153332ab695e53d906da6a14a8097c (diff)
downloadtor-c5bbf72fb81eb8369178d61e990c14a9e631e419.tar.gz
tor-c5bbf72fb81eb8369178d61e990c14a9e631e419.zip
Merge branch 'maint-0.3.3'
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 72a902d8b4..a33e0d1f36 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -116,6 +116,9 @@ uint64_t stats_n_relay_cells_relayed = 0;
* hop?
*/
uint64_t stats_n_relay_cells_delivered = 0;
+/** Stats: how many circuits have we closed due to the cell queue limit being
+ * reached (see append_cell_to_circuit_queue()) */
+uint64_t stats_n_circ_max_cell_reached = 0;
/** Used to tell which stream to read from first on a circuit. */
static tor_weak_rng_t stream_choice_rng = TOR_WEAK_RNG_INIT;
@@ -2862,6 +2865,7 @@ append_cell_to_circuit_queue(circuit_t *circ, channel_t *chan,
(exitward) ? "Outbound" : "Inbound", queue->n,
max_circuit_cell_queue_size);
circuit_mark_for_close(circ, END_CIRC_REASON_RESOURCELIMIT);
+ stats_n_circ_max_cell_reached++;
return;
}