summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-24 10:31:38 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-24 10:31:38 -0400
commit67aa3685e7321322cbbc2bef7f87c9a885819af8 (patch)
tree46f3678112d650aea4f628b2dd4fe1d7c39c6be0 /src/or/control.c
parentaa1ad30fc9c629eea44d715041f29e4838ff3175 (diff)
parente3af72647db51e99186b9f284066dedcdc8c10d6 (diff)
downloadtor-67aa3685e7321322cbbc2bef7f87c9a885819af8.tar.gz
tor-67aa3685e7321322cbbc2bef7f87c9a885819af8.zip
Merge branch 'bug11396_v2_squashed'
Conflicts: src/or/main.c
Diffstat (limited to 'src/or/control.c')
-rwxr-xr-xsrc/or/control.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 2815b7901e..d571900ac3 100755
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1504,6 +1504,9 @@ getinfo_helper_misc(control_connection_t *conn, const char *question,
int max_fds=-1;
set_max_file_descriptors(0, &max_fds);
tor_asprintf(answer, "%d", max_fds);
+ } else if (!strcmp(question, "limits/max-mem-in-queues")) {
+ tor_asprintf(answer, U64_FORMAT,
+ U64_PRINTF_ARG(get_options()->MaxMemInQueues));
} else if (!strcmp(question, "dir-usage")) {
*answer = directory_dump_request_log();
} else if (!strcmp(question, "fingerprint")) {
@@ -2184,6 +2187,7 @@ static const getinfo_item_t getinfo_items[] = {
ITEM("process/user", misc,
"Username under which the tor process is running."),
ITEM("process/descriptor-limit", misc, "File descriptor limit."),
+ ITEM("limits/max-mem-in-queues", misc, "Actual limit on memory in queues"),
ITEM("dir-usage", misc, "Breakdown of bytes transferred over DirPort."),
PREFIX("desc-annotations/id/", dir, "Router annotations by hexdigest."),
PREFIX("dir/server/", dir,"Router descriptors as retrieved from a DirPort."),