[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r18201: {tor} Let controllers actually ask for the "clients_seen" event. B (in tor/trunk: . doc/spec src/or)
Author: arma
Date: 2009-01-20 22:24:27 -0500 (Tue, 20 Jan 2009)
New Revision: 18201
Modified:
tor/trunk/ChangeLog
tor/trunk/doc/spec/control-spec.txt
tor/trunk/src/or/control.c
Log:
Let controllers actually ask for the "clients_seen" event. Bugfix
on 0.2.1.10-alpha; reported by Matt Edman.
Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog 2009-01-21 02:51:30 UTC (rev 18200)
+++ tor/trunk/ChangeLog 2009-01-21 03:24:27 UTC (rev 18201)
@@ -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
Modified: tor/trunk/doc/spec/control-spec.txt
===================================================================
--- tor/trunk/doc/spec/control-spec.txt 2009-01-21 02:51:30 UTC (rev 18200)
+++ tor/trunk/doc/spec/control-spec.txt 2009-01-21 03:24:27 UTC (rev 18201)
@@ -218,7 +218,8 @@
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.
Modified: tor/trunk/src/or/control.c
===================================================================
--- tor/trunk/src/or/control.c 2009-01-21 02:51:30 UTC (rev 18200)
+++ tor/trunk/src/or/control.c 2009-01-21 03:24:27 UTC (rev 18201)
@@ -997,6 +997,8 @@
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);