Commit Graph

2737 Commits

Author SHA1 Message Date
Roger Dingledine fcfa4a6733 mark_logs_temp() before init'ing new ones.
we were seeing double, triple, etc each time we setconf'ed.


svn:r2738
2004-11-09 08:01:39 +00:00
Roger Dingledine ef914742f0 change the interface to config_trial_assign()
svn:r2737
2004-11-09 07:55:48 +00:00
Roger Dingledine b2c25b6586 when you try a new set of options, and you like them, make sure they stick
svn:r2736
2004-11-09 07:45:24 +00:00
Roger Dingledine 2eab8cf154 stop wanting to split init_keys()
svn:r2735
2004-11-09 07:29:05 +00:00
Roger Dingledine 0c9fc45a92 once normalized, DataDirectory is always defined
svn:r2734
2004-11-09 07:20:21 +00:00
Nick Mathewson 9df2bfbee5 Make check_private_dir trimodal (check/create/ignore), not bimodal (create/ignore).
svn:r2733
2004-11-09 07:12:31 +00:00
Roger Dingledine 070213507c Stop using the wrong DataDirectory when we're validating.
Also validate/normalize the DataDirectory better.


svn:r2732
2004-11-09 07:05:53 +00:00
Nick Mathewson 96fe2b3794 Separate is-recognized-option from get-option-value, since NULL is ambiguous and returning "" misrepresents.
svn:r2731
2004-11-09 06:40:32 +00:00
Roger Dingledine 3c1bc01e5c when rejecting an old-style router descriptor, tell us its nickname
svn:r2730
2004-11-09 06:37:58 +00:00
Roger Dingledine da68074ef6 During options_dup, don't copy LINELIST_S or OBSOLETE options.
And recognize obsolete options now in config_get_assigned_option().


svn:r2729
2004-11-09 06:18:17 +00:00
Roger Dingledine bc90d0cacd EntryNodess is not the plural of EntryNodes
svn:r2728
2004-11-09 06:09:06 +00:00
Roger Dingledine 4d0cc83724 and another
svn:r2727
2004-11-09 06:03:20 +00:00
Roger Dingledine 6a3bdfad1f fix some dereferences
svn:r2726
2004-11-09 05:59:22 +00:00
Roger Dingledine bd788b1417 a tor-control patch to do setconf too
svn:r2725
2004-11-09 05:45:41 +00:00
Roger Dingledine af4e592a26 make datadirectory work again
svn:r2724
2004-11-09 05:35:49 +00:00
Roger Dingledine ae45351abb fix mistake in comments
svn:r2723
2004-11-09 05:30:48 +00:00
Nick Mathewson f96a8a5cba Normalize DataDirectory in options_validate, making SIGHUP survivable.
svn:r2722
2004-11-09 05:26:49 +00:00
Nick Mathewson 9df87019a7 Document accounting
svn:r2721
2004-11-09 05:18:15 +00:00
Roger Dingledine ee7203fc0b and another todo item for nick
svn:r2720
2004-11-09 05:16:21 +00:00
Roger Dingledine a0768cf2cc 0.0.9pre5 approaches
svn:r2719
2004-11-09 05:12:26 +00:00
Roger Dingledine d300938446 move -Wwrite-strings -Wredundant-decls to a separate CFLAGS
line, since they fail on my system due to bugs in my includes


svn:r2718
2004-11-09 04:50:44 +00:00
Nick Mathewson 182b95ac52 Stop DataDirectory from changing; also stop using new as an identifier?
svn:r2717
2004-11-09 04:46:24 +00:00
Roger Dingledine a1732aed0f Make an options_act() where we do all the things a new options set
needs.
Still needs more work.


svn:r2716
2004-11-09 04:28:18 +00:00
Roger Dingledine f53ebe3057 stop breaking the get_options() abstraction in config.c
svn:r2715
2004-11-09 02:12:55 +00:00
Roger Dingledine 216db14c81 fix comments in hibernate.c
svn:r2714
2004-11-09 02:12:41 +00:00
Roger Dingledine f976732c6e ship tor-control.py in the tarball
svn:r2713
2004-11-09 01:34:18 +00:00
Roger Dingledine 190f7920bd various fixes
svn:r2712
2004-11-09 01:24:10 +00:00
Nick Mathewson 476aee74e1 Separate validate from activate. Document undocumented stuff in config.c.
svn:r2711
2004-11-08 23:12:40 +00:00
Roger Dingledine 51febe3387 while we hibernate, our declared bandwidth capacity is 0
svn:r2710
2004-11-07 23:19:12 +00:00
Nick Mathewson 25f69f84e5 Document hibernate.c. Also fix handling of corner case where we hit the end of the interval while we are in HIBERNATE_STATE_LOWBANDWIDTH
svn:r2709
2004-11-07 23:14:47 +00:00
Nick Mathewson 33bbf28779 Fix compile errors
svn:r2708
2004-11-07 23:11:29 +00:00
Nick Mathewson 8e6e8971de Make set-option functions distinguish between bad keys and bad values, in case the caller cares
svn:r2707
2004-11-07 22:59:30 +00:00
Nick Mathewson 47c11848de Fix up error codes
svn:r2706
2004-11-07 22:58:35 +00:00
Nick Mathewson d29ae18248 More tests for split
svn:r2705
2004-11-07 22:58:16 +00:00
Roger Dingledine 1eda6dfb6b add saveconf control command.
allow authentication by localhost, but if tor demands more, require more.


svn:r2704
2004-11-07 22:37:59 +00:00
Roger Dingledine c063fe6741 clean up control spec, man page
svn:r2703
2004-11-07 22:36:43 +00:00
Nick Mathewson 5475d1ce4b Add missing dereference; stop throwing zeroes around.
svn:r2702
2004-11-07 22:18:00 +00:00
Roger Dingledine 723c3e542d add an in-progress python controller to test controlport
svn:r2701
2004-11-07 22:08:20 +00:00
Nick Mathewson 2649413e66 Document control.c
svn:r2700
2004-11-07 21:37:50 +00:00
Roger Dingledine 1a628c66c7 allow unauth control connections for now
let control connections recognize eof


svn:r2699
2004-11-07 11:33:04 +00:00
Roger Dingledine a1fe2f2c91 Clean up copyrights.
Break connection_consider_empty_buckets() out of
connection_read_bucket_decrement().


svn:r2698
2004-11-07 01:33:06 +00:00
Roger Dingledine 94af772602 tor --list-fingerprint as a client shouldn't try to print null
svn:r2697
2004-11-06 09:22:08 +00:00
Roger Dingledine 936d2bb505 fix the next subtle memory-crunching bug
now hup works


svn:r2696
2004-11-06 08:55:22 +00:00
Roger Dingledine e13df6ec20 fix subtle bug that was causing logs to not show anything
svn:r2695
2004-11-06 07:40:20 +00:00
Roger Dingledine ddab44438d only play the accounting game if it's possible you'll choose to hibernate
svn:r2694
2004-11-06 06:56:28 +00:00
Roger Dingledine 45685c3cb7 parse_line_from_file is obsolete.
svn:r2693
2004-11-06 05:18:29 +00:00
Roger Dingledine 27b956f8c5 Make options no longer a global variable.
Now we can try setting an option but back out if it fails to parse, or
  if it's disallowed (e.g. changing RunAsDaemon from 1 to 0).
Use parse_line_from_str rather than parse_line_from_file.


svn:r2692
2004-11-06 05:18:11 +00:00
Nick Mathewson 291a900d05 Update log documentation
svn:r2691
2004-11-05 21:22:38 +00:00
Nick Mathewson becae33132 Mark items completed; clarify items; remove dups
svn:r2690
2004-11-05 18:32:39 +00:00
Nick Mathewson ea77306e9c Write hibernation code. Needs docs and tests.
svn:r2689
2004-11-05 17:55:34 +00:00