summaryrefslogtreecommitdiff
path: root/src/or/relay.h
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <ffernandezmancera@gmail.com>2017-12-20 18:31:30 +0100
committerFernando Fernandez Mancera <ffernandezmancera@gmail.com>2017-12-20 18:31:30 +0100
commitac9eebd63637d39b2a55d9a40c748a197fd47f93 (patch)
tree3434ea6e2dd7bcbb0efa4a59b3385b5619e715dd /src/or/relay.h
parent5c4da2cacd308e63293a67a4e595044d24dd56a6 (diff)
downloadtor-ac9eebd63637d39b2a55d9a40c748a197fd47f93.tar.gz
tor-ac9eebd63637d39b2a55d9a40c748a197fd47f93.zip
Add some values to OOM log msg #24501
Exposing cell_queues_get_total_allocation(), buf_get_total_allocation(), tor_compress_get_total_allocation(), tor_compress_get_total_allocation() when hit MaxMemInQueues threshold. Fixes #24501 Signed-off-by: Fernando Fernandez Mancera <ffernandezmancera@gmail.com>
Diffstat (limited to 'src/or/relay.h')
-rw-r--r--src/or/relay.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/relay.h b/src/or/relay.h
index 2412dcb23c..479ce5496b 100644
--- a/src/or/relay.h
+++ b/src/or/relay.h
@@ -17,6 +17,7 @@ extern uint64_t stats_n_relay_cells_delivered;
int circuit_receive_relay_cell(cell_t *cell, circuit_t *circ,
cell_direction_t cell_direction);
+size_t cell_queues_get_total_allocation(void);
void relay_header_pack(uint8_t *dest, const relay_header_t *src);
void relay_header_unpack(relay_header_t *dest, const uint8_t *src);
@@ -102,7 +103,6 @@ STATIC int connection_edge_process_resolved_cell(edge_connection_t *conn,
const relay_header_t *rh);
STATIC packed_cell_t *packed_cell_new(void);
STATIC packed_cell_t *cell_queue_pop(cell_queue_t *queue);
-STATIC size_t cell_queues_get_total_allocation(void);
STATIC int cell_queues_check_size(void);
#endif /* defined(RELAY_PRIVATE) */