diff options
author | Roger Dingledine <arma@torproject.org> | 2009-01-21 03:24:27 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-01-21 03:24:27 +0000 |
commit | a5a6b9a08a76272ebef1d29202b74fcf76464f5f (patch) | |
tree | e6f609e78864d114963a9d05053759859e83da00 | |
parent | 90a5042aeb96049b41adb125197a898e7bebec33 (diff) | |
download | tor-a5a6b9a08a76272ebef1d29202b74fcf76464f5f.tar tor-a5a6b9a08a76272ebef1d29202b74fcf76464f5f.tar.gz |
Let controllers actually ask for the "clients_seen" event. Bugfix
on 0.2.1.10-alpha; reported by Matt Edman.
svn:r18201
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | doc/spec/control-spec.txt | 3 | ||||
-rw-r--r-- | src/or/control.c | 2 |
3 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,7 @@ Changes in version 0.2.1.12-alpha - 2009-01-?? + o Minor bugfixes: + - Let controllers actually ask for the "clients_seen" event. Bugfix + on 0.2.1.10-alpha; reported by Matt Edman. Changes in version 0.2.1.11-alpha - 2009-01-20 diff --git a/doc/spec/control-spec.txt b/doc/spec/control-spec.txt index 7c9bcea08..7ea0d865f 100644 --- a/doc/spec/control-spec.txt +++ b/doc/spec/control-spec.txt @@ -218,7 +218,8 @@ $Id$ EventCode = "CIRC" / "STREAM" / "ORCONN" / "BW" / "DEBUG" / "INFO" / "NOTICE" / "WARN" / "ERR" / "NEWDESC" / "ADDRMAP" / "AUTHDIR_NEWDESCS" / "DESCCHANGED" / "STATUS_GENERAL" / - "STATUS_CLIENT" / "STATUS_SERVER" / "GUARD" / "NS" / "STREAM_BW" + "STATUS_CLIENT" / "STATUS_SERVER" / "GUARD" / "NS" / "STREAM_BW" / + "CLIENTS_SEEN" Any events *not* listed in the SETEVENTS line are turned off; thus, sending SETEVENTS with an empty body turns off all event reporting. diff --git a/src/or/control.c b/src/or/control.c index 0236d1ea8..571224188 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -997,6 +997,8 @@ handle_control_setevents(control_connection_t *conn, uint32_t len, event_code = EVENT_GUARD; else if (!strcasecmp(ev, "STREAM_BW")) event_code = EVENT_STREAM_BANDWIDTH_USED; + else if (!strcasecmp(ev, "CLIENTS_SEEN")) + event_code = EVENT_CLIENTS_SEEN; else { connection_printf_to_buf(conn, "552 Unrecognized event \"%s\"\r\n", ev); |