Commit Graph

2896 Commits

Author SHA1 Message Date
Nick Mathewson b86bb7f58d Our new favored MS build environment is vc7/visual studio .net; vc6 is just too broken.
svn:r2897
2004-11-15 23:34:38 +00:00
Nick Mathewson 6b8f2610a4 Make log_fn not fail so miserably on VC6
svn:r2896
2004-11-15 23:30:26 +00:00
Nick Mathewson bac0cf28c6 Whitespace normalization
svn:r2895
2004-11-15 23:29:24 +00:00
Nick Mathewson a34ef8a93d ugly macros to make log_fn play nice on non-GCC compilers.
svn:r2894
2004-11-15 21:18:07 +00:00
Nick Mathewson 6017f9ea48 Tweak on patch to make authoritative directory servers cache
directories on disk.  Make authdirservers cache *their own*
directories instead of the ones they download.  This gives better
liveness, and marginally better resistance to broken authdirservers.

Authdirservers don't cache running-routers at all: r-r isn't stored to
disk, so there's no point right now.


svn:r2893
2004-11-15 16:17:59 +00:00
Roger Dingledine f813a04e73 mark off almost all remaining pre6 items
svn:r2892
2004-11-15 10:20:57 +00:00
Roger Dingledine fd7acf31e4 Authoritative dirservers now also cache the directory, since
they weren't writing anything into their datadirectory, so
when they stop and start, they would know nothing until they
fetched a directory from another authdirserver.


svn:r2891
2004-11-15 09:38:17 +00:00
Roger Dingledine 03e0ffd67e move second stat to a cleaner place
svn:r2890
2004-11-15 09:22:01 +00:00
Roger Dingledine 028649a2b3 Break DirFetchPostPeriod into:
- DirFetchPeriod for fetching full directory,
  - StatusFetchPeriod for fetching running-routers,
  - DirPostPeriod for posting server descriptor,
  - RendPostPeriod for posting hidden service descriptors.

Also make sure the hidden service descriptors are at a random
offset from each other, to hinder linkability.


svn:r2889
2004-11-15 09:05:54 +00:00
Roger Dingledine a5a1354d72 clean up socks handling, refuse connections to port 0
svn:r2888
2004-11-15 07:50:15 +00:00
Roger Dingledine ba31187907 a first cut at a print_usage()
svn:r2887
2004-11-15 07:29:27 +00:00
Nick Mathewson 012264d981 Only record bandwidth usage when accounting is enabled
svn:r2886
2004-11-15 04:48:53 +00:00
Nick Mathewson 8b247bc963 Change "warn if unverified routers are very skewed" to "never warn about unverified router skew"
svn:r2885
2004-11-15 04:28:24 +00:00
Roger Dingledine 4cee746424 fix yet another 404
svn:r2884
2004-11-15 04:19:50 +00:00
Nick Mathewson 44622110c7 Cache running-routers; compress running-routers; serve compressed running-routers.z
svn:r2883
2004-11-15 04:04:20 +00:00
Nick Mathewson 9f758c515c Patch to patch: do not send both error and done for one command.
svn:r2882
2004-11-15 04:02:59 +00:00
Roger Dingledine c2179e48e2 fix a bug in configuring accounting in options_act()
svn:r2881
2004-11-15 04:01:31 +00:00
Roger Dingledine fe36551362 some fixes so far
svn:r2880
2004-11-15 03:53:03 +00:00
Nick Mathewson b3753973fc Add tor.spec and torctl to .cvsignore files
svn:r2879
2004-11-15 03:31:32 +00:00
Nick Mathewson b22cd481a0 Improve de-installation a little
svn:r2878
2004-11-14 23:47:42 +00:00
Nick Mathewson c91bf57daf Define an elaborate set of lunacy to make sure that RPM versions do
the right thing with our recalcitrant versioning scheme.  See
tor.spec.in for full details.  Basically, the progression is now:

 Tor version         RPM version
  0.0.8          ---> 0.0.8
  0.0.8.1        ---> 0.0.8.1
  0.0.9pre1-cvs  ---> 0.0.8.99.0.0.9.pre.1.cvs
  0.0.9pre1      ---> 0.0.8.99.0.0.9.pre.1.release
  0.0.9pre2      ---> 0.0.8.99.0.0.9.pre.2.release
  0.0.9rc1       ---> 0.0.8.99.0.0.9.rc.1.release
  0.0.9          ---> 0.0.9
  0.0.9.1-cvs    ---> 0.0.9.0.99.0.0.9.1.cvs
  0.0.9.1        ---> 0.0.9.1

The spec file (but not the system) will break if a tor version ends in
".0", so don't do that yet.


svn:r2877
2004-11-14 23:18:20 +00:00
Nick Mathewson 3dd9df30c0 Fix compilation. Duh.
svn:r2876
2004-11-14 22:53:51 +00:00
Nick Mathewson 22330a7f8a Resolve some hibernating-related XXXX009s.
svn:r2875
2004-11-14 22:21:23 +00:00
Nick Mathewson c873f66838 Allow more clock skew from unrecognized hosts than from recognized ones.
svn:r2874
2004-11-14 22:08:25 +00:00
Nick Mathewson e943c5d927 Split X509 certificate liveness checks into a separate function
svn:r2873
2004-11-14 22:07:48 +00:00
Nick Mathewson 9edb43727b Fetch running-routers.
Split logic to initiate dirfetch, running-routers fetch, and
descriptor post.  arma: There are some XXXs here that raise design
questions which we should solve before the next release.

The biggest problem is this: Right now, the directory is about 50X as
large as running-routers uncompressed, and about 36X as large
compressed.  Assuming:

    - everybody gets the compressed version of everything,

    - everybody gets cached directories from random dirservers and
      uncached r-r from authdirservers

    - everybody downloads r-r at the same rate they now download dirs,

then using r-r from will *increase* authdirserver directory bandwidth usage
if there are significantly more caches than authdirservers.

I think it's safe to leave this in for now, since there aren't 3x36 caching
dirservers, but we should make everybody with a dirport cache running-routers
soon.  But I could be wrong.


svn:r2872
2004-11-14 21:46:40 +00:00
Nick Mathewson b934070a62 Make running-routers fetch (apparently) work
svn:r2871
2004-11-14 21:35:30 +00:00
Nick Mathewson 4579c5a26c Note item completed
svn:r2870
2004-11-14 21:11:57 +00:00
Nick Mathewson 5724bb27c3 Hibernate if we start tor during the "wait for wakeup-time" phase of an accounting interval. Log our hibernation plans better.
svn:r2869
2004-11-14 21:11:06 +00:00
Nick Mathewson 9b14695894 Add simpler option_is_same, as suggested by arma. Finish implementing SAVECONF
svn:r2868
2004-11-14 20:51:28 +00:00
Nick Mathewson f50794660e Uninstaller should remove tor_resolve.exe too
svn:r2867
2004-11-14 19:10:46 +00:00
Nick Mathewson bbcf8f1b35 Make TODO items done.
svn:r2866
2004-11-14 19:08:24 +00:00
Nick Mathewson 9a26336af0 Note where torrc goes.
svn:r2865
2004-11-14 19:08:08 +00:00
Nick Mathewson 3b4d726e98 Add coda at the end of configure.in to update versions in orconfig.h and tor.nsi as needed.
svn:r2864
2004-11-14 19:02:58 +00:00
Nick Mathewson 16df6619f6 Make happy-installer script work.
svn:r2863
2004-11-14 18:56:46 +00:00
Nick Mathewson 8f7039ea4a Add shell script to automate windows packaging. Only Nick is expected to run this.
svn:r2862
2004-11-14 18:50:06 +00:00
Nick Mathewson c38602ead8 Add tor_resolve to package
svn:r2861
2004-11-14 18:49:31 +00:00
Nick Mathewson cb02a7e421 Fix windows whitespace
svn:r2860
2004-11-14 18:21:17 +00:00
Nick Mathewson 8e68f4af28 Add an unreachable return 0.
svn:r2859
2004-11-14 18:20:12 +00:00
Nick Mathewson 4a1f6c65e6 Revise project files; make them work
svn:r2858
2004-11-14 18:19:28 +00:00
Nick Mathewson 90a014b803 Fix cast warning in tor-resolve.c
svn:r2857
2004-11-14 18:14:15 +00:00
Nick Mathewson e9bcaaca5f Update VC6 workspace/project files; move into a new sane directory stucture
svn:r2856
2004-11-14 18:11:42 +00:00
Nick Mathewson 274cbf9068 Remove redundant declaration
svn:r2855
2004-11-14 17:22:10 +00:00
Nick Mathewson 243e5ecbb3 Fix "implicit declaration of ftello" warning: add AC_FUNC_FSEEKO in configure.in and always include orconfig.h before anything else
svn:r2854
2004-11-14 17:21:32 +00:00
Roger Dingledine 81a9ffdd2a make kill -USR1 work again
svn:r2853
2004-11-14 13:35:47 +00:00
Roger Dingledine 69291270ab ok ok the stat wasn't redundant
but the warn was


svn:r2852
2004-11-14 13:35:39 +00:00
Roger Dingledine ef550d9cc4 clean up spec headers, mark a few todo items off
svn:r2851
2004-11-14 10:29:43 +00:00
Roger Dingledine 7c36dca495 correct the link to torrc.sample
svn:r2850
2004-11-14 10:03:08 +00:00
Roger Dingledine 472a9dd6f2 remove redundant stdio.h
i guess that wasn't the fix


svn:r2849
2004-11-14 09:49:27 +00:00
Roger Dingledine af5dddc273 clean up the ftello call a little bit.
but i'm still getting:
log.c:94: warning: implicit declaration of function `ftello'


svn:r2848
2004-11-14 09:48:54 +00:00