Commit Graph

216 Commits

Author SHA1 Message Date
Mike Perry
8c222ff26d Add BUILDTIMEOUT_SET event for CBT stress testing. 2010-02-18 09:08:31 -08:00
Karsten Loesing
d54fd26f3a Fix bridge statistics.
Fix statistics on client numbers by country as seen by bridges that were
broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour intervals
instead of variable 12-to-48-hour intervals.
2009-12-17 09:22:55 +01:00
Roger Dingledine
e23af39b5b New controller command "getinfo config-text"
It returns the contents that Tor would write if you send it a SAVECONF
command, so the controller can write the file to disk itself.
2009-12-13 19:21:06 -05:00
Roger Dingledine
67590745a2 correct the spec for the stream_bw event.
"neonomad" pointed out on or-talk that the order is opposite from the
intuitive order. explain why. we chose to fix the spec rather than the
code because there are controllers like torflow that already expect
the current behavior.
2009-10-10 15:07:37 -04:00
Roger Dingledine
c57ebf68ac a mish-mash of stuff in my sandbox 2009-09-17 01:58:39 -04:00
Nick Mathewson
64dce12ac8 Merge commit 'origin/maint-0.2.1' 2009-09-01 15:59:40 -04:00
Roger Dingledine
4f2f7672dc Add getinfo accepted-server-descriptor. Clean spec.
Add a "getinfo status/accepted-server-descriptor" controller
command, which is the recommended way for controllers to learn
whether our server descriptor has been successfully received by at
least on directory authority. Un-recommend good-server-descriptor
getinfo and status events until we have a better design for them.
2009-08-31 18:37:25 -04:00
Roger Dingledine
bffe671c5d Merge branch 'maint-0.2.1' 2009-08-28 03:47:18 -04:00
Roger Dingledine
ba73c90b36 Only send netinfo clock_skew to controller if an authority told us so
We were triggering a CLOCK_SKEW controller status event whenever
we connect via the v2 connection protocol to any relay that has
a wrong clock. Instead, we should only inform the controller when
it's a trusted authority that claims our clock is wrong. Bugfix
on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
2009-08-28 03:42:09 -04:00
Roger Dingledine
fd290e6650 fix typo in control-spec 2009-08-07 17:55:17 -04:00
Roger Dingledine
df46eec04b Patch from atagar to fix control-spec
Specifically, admit that the "newconsensus" event exists, and
status/reachability has secretly been status/reachability-succeeded
all along, but nobody used it so we didn't notice.
2009-07-30 03:41:02 -04:00
Roger Dingledine
c591c6ad0f resolve atagar's confusion with getinfo accounting 2009-07-13 17:34:47 -04:00
Nick Mathewson
dcc540eff7 Remove support for events without the extended format or long names.
Supporting the old formats made our code complex; running without them
has been discouraged since 0.2.1.x.
2009-05-25 12:52:25 -04:00
Sebastian Hahn
6bd09d5076 Remove all svn metadata minus what I missed.
Tor doesn't use SVN anymore, making $Revision$, $Id$ and $Date$
meaningless. Remove them without replacement.
2009-05-05 17:05:46 +02:00
Nick Mathewson
841b1e4369 Clarify that the nickname part of a LongName is indeed optional.
svn:r19076
2009-03-18 19:30:22 +00:00
Roger Dingledine
8d2a689e51 new controller event NEWCONSENSUS that lists the networkstatus
lines for every recommended relay.

still needs docdoc and changelog entry.


svn:r18556
2009-02-16 06:18:03 +00:00
Roger Dingledine
ea37df68d6 patch from matt to implement 'getinfo status/clients-seen'
svn:r18287
2009-01-28 06:50:36 +00:00
Roger Dingledine
a3295018a9 more minor bugs in the control spec
svn:r18286
2009-01-28 06:46:14 +00:00
Roger Dingledine
20bf59975e typo found by 'nil'
svn:r18283
2009-01-28 00:03:47 +00:00
Roger Dingledine
0b10e0f40a Let controllers actually ask for the "clients_seen" event. Bugfix
on 0.2.1.10-alpha; reported by Matt Edman.


svn:r18201
2009-01-21 03:24:27 +00:00
Nick Mathewson
607334a2cc AUTHENTICATE is really mandatory. No authentication is not quite the default.
svn:r18024
2009-01-08 14:07:05 +00:00
Roger Dingledine
f713a3b179 New controller event "clients_seen" to report a geoip-based summary
of which countries we've seen clients from recently. Now controllers
like Vidalia can show bridge operators that they're actually making
a difference.


svn:r17796
2008-12-27 06:50:07 +00:00
Nick Mathewson
784ee9e24b Add new internal-use-only option for controllers to use to prevent SIGHUP from reloading the configuration. Fixes bug 856.
svn:r17567
2008-12-10 22:17:02 +00:00
Nick Mathewson
0e8c949cc2 Specify the CONSENSUS_ARRIVED event.
svn:r17536
2008-12-09 18:17:07 +00:00
Roger Dingledine
4f7ee3046c Serve the latest v3 networkstatus consensus via the control
port. Use "getinfo dir/status-vote/current/consensus" to fetch it.


svn:r16907
2008-09-14 04:07:29 +00:00
Roger Dingledine
b7f5a34928 update and integrate proposals 125 (bridges) and 137 (bootstrap status)
svn:r16374
2008-08-03 15:34:28 +00:00
Roger Dingledine
628b9b7c95 start sending "bootstrap problem" status events when we're having troubles
reaching relays.


svn:r15116
2008-06-11 01:14:23 +00:00
Nick Mathewson
00d4ca0dc7 Fix the first part of bug 681, as suggested by Robert Hogan on or-talk.
svn:r14754
2008-05-27 21:02:36 +00:00
Nick Mathewson
43b4008fb3 r15704@host206: nickm | 2008-05-21 16:21:47 -0400
Clarification/explanation patch for specs, from Killerchicken


svn:r14687
2008-05-21 20:22:43 +00:00
Peter Palfrader
2250652ab1 Slightly clarify the control spec
svn:r14362
2008-04-12 16:58:20 +00:00
Nick Mathewson
5c022c7b94 r15024@tombo: nickm | 2008-03-29 01:37:09 -0400
Close proposal 126 ("Getting GeoIP data and publishing usage summaries.")  It was never completely built, so note which parts wer and which were not.  Not-built parts would be good topics for future proposals.


svn:r14232
2008-03-29 05:43:02 +00:00
Nick Mathewson
588ad72d72 r18723@catbus: nickm | 2008-03-11 00:25:30 -0400
Fix bug spotted by mwenge: a server_event should not be a sever_event.  Also, fix compile errors in config.c and control.c with --enable-gcc-warnings.


svn:r13957
2008-03-11 04:30:14 +00:00
Roger Dingledine
6c7756f9b2 Change the behavior of "getinfo status/good-server-descriptor"
so it doesn't return failure when any authority disappears.


svn:r13645
2008-02-21 06:06:45 +00:00
Nick Mathewson
acabc49063 r14236@tombo: nickm | 2008-02-17 13:44:55 -0500
Partial fix for bug 586: Add an ephemeral __HashedControlSessionPassword.


svn:r13543
2008-02-17 18:45:07 +00:00
Nick Mathewson
779e00fa02 r18054@catbus: nickm | 2008-02-12 15:42:36 -0500
Clarify a non-obvious point in control-spec.txt; patch from mwenge.


svn:r13485
2008-02-12 20:42:40 +00:00
Roger Dingledine
e32b2ec8d4 other cleanups
svn:r13448
2008-02-09 17:56:52 +00:00
Nick Mathewson
79476a1a08 r17916@catbus: nickm | 2008-02-05 16:29:35 -0500
Fix some XXX020 items in control.c: add a maximum line length and note that the number of versioning authorities is no longer apparent to clients.


svn:r13390
2008-02-05 21:39:49 +00:00
Roger Dingledine
f11cd7417f New config options WarnPlaintextPorts and RejectPlaintextPorts so
Tor can warn and/or refuse connections to ports commonly used with
vulnerable-plaintext protocols.

We still need to figure out some good defaults for them.


svn:r13198
2008-01-20 05:54:15 +00:00
Roger Dingledine
1f321b2992 explain a bit about router descriptor purposes
svn:r13154
2008-01-17 05:47:44 +00:00
Nick Mathewson
311963b226 r17499@catbus: nickm | 2008-01-07 13:39:46 -0500
Bugfix on fix for 557: Make values containing special characters work right with getconf, setconf, and saveconf.  Document this in control-spec.txt


svn:r13056
2008-01-07 18:54:55 +00:00
Roger Dingledine
45f2ac58e8 answer getinfo ns/purpose/bridge queries
svn:r12860
2007-12-18 22:39:15 +00:00
Roger Dingledine
e1eaa959c6 Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
ask about source, timestamp of arrival, purpose, etc. We need
something like this to help Vidalia not do GeoIP lookups on bridge 
addresses.


svn:r12687
2007-12-06 07:15:06 +00:00
Roger Dingledine
29759da2e7 When the DANGEROUS_VERSION controller status event told us we're
running an obsolete version, it used the string "OLD" to describe
it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
"OBSOLETE" in both cases.


svn:r12686
2007-12-05 19:32:58 +00:00
Nick Mathewson
2caf9df131 r16279@catbus: nickm | 2007-10-30 11:14:29 -0400
Improved skew reporting:  "You are 365 days in the duture" is more useful than "You are 525600 minutes in the future".  Also, when we get something that proves we are at least an hour in the past, tell the controller "CLOCK_SKEW MIN_SKEW=-3600" rather than just "CLOCK_SKEW"


svn:r12283
2007-10-30 15:17:07 +00:00
Nick Mathewson
85dabb0759 r16278@catbus: nickm | 2007-10-30 09:46:28 -0400
Accept future networkstatus documents, but warn about skew when we get them.


svn:r12282
2007-10-30 15:17:01 +00:00
Andrew Lewman
3a34db931f And more places with the wrong url, now updated.
svn:r12267
2007-10-29 01:08:22 +00:00
Roger Dingledine
9562ab4cd9 <edmanm> 3. Commands
<edmanm> All commands and other keywords are case-insensitive.
<edmanm> that lying control-spec.txt!
<edmanm> getinfo Address
<edmanm> 552 Unrecognized key "Address"
<edmanm> getinfo address
<edmanm> 250-address=72.230.11.78
<edmanm> 250 OK


svn:r12140
2007-10-24 07:22:33 +00:00
Roger Dingledine
59ed2fd529 Controllers should now specify cache=no or cache=yes when using
the +POSTDESCRIPTOR command.


svn:r11892
2007-10-12 07:57:29 +00:00
Roger Dingledine
4255beddab Disable the SETROUTERPURPOSE controller command: it is now obsolete.
svn:r11891
2007-10-11 22:19:47 +00:00
Nick Mathewson
a9784e89da r15310@catbus: nickm | 2007-09-24 11:36:08 -0400
Patch from Robert Hogan: fix a couple of status-event related typos. Backport candidate.


svn:r11604
2007-09-24 15:41:20 +00:00