summaryrefslogtreecommitdiff
path: root/src/or/main.c
AgeCommit message (Collapse)Author
2009-07-05If configured, write cell statistics to disk periodically.Karsten Loesing
2009-06-30Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-06-30the third piece of bug 969 fixingRoger Dingledine
when we write out our stability info, detect relays that have slipped through the cracks. log about them and correct the problem. if we continue to see a lot of these over time, it means there's another spot where relays fall out of the routerlist without being marked as unreachable.
2009-06-12Isolate Libevent API dependency to just main.c and dns.c in src/or.Nick Mathewson
The rest of the code was only including event.h so that it could see EV_READ and EV_WRITE, which we were using as part of the connection_watch_events interface for no very good reason.
2009-06-12Make Tor compile with Libevent 1.0 again.Nick Mathewson
2009-06-12Update Tor to use Libevent 2.0 APIs when available.Nick Mathewson
This patch adds a new compat_libevent.[ch] set of files, and moves our Libevent compatibility and utilitity functions there. We build them into a separate .a so that nothing else in src/commmon depends on Libevent (partially fixing bug 507). Also, do not use our own built-in evdns copy when we have Libevent 2.0, whose evdns is finally good enough (thus fixing Bug 920).
2009-06-04Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-06-03Fix gprof bottlenecks on exit nodes found by Jacob.Nick Mathewson
Apparently all the stuff that does a linear scan over all the DNS cache entries can get really expensive when your DNS cache is very large. It's hard to say how much this will help performance, since gprof doesn't count time spent in OpenSSL or zlib, but I'd guess 10%. Also, this patch removes calls to assert_connection_ok() from inside the read and write callbacks, which are similarly unneeded, and a little costlier than I'm happy with. This is probably worth backporting to 0.2.0.
2009-05-31Merge branch 'hardware_accel_improvements'Nick Mathewson
2009-05-27Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-05-27Spell-check Tor.Nick Mathewson
2009-05-27Change the way how directories that are configured with --enable-geoip-stats ↵Karsten Loesing
write geoip stats to disk. - Write geoip stats to disk every 24 hours, not every hour. - Remove configuration options and define reasonable defaults. - Clear history of client requests every 24 hours (which wasn't done at all before).
2009-05-24fix a commentRoger Dingledine
2009-05-23Add support for dynamic OpenSSL hardware crypto acceleration engines.Martin Peck
2009-05-22Log the number and size of DNS cache entries on SIGUSR1.Jacob Appelbaum
Specifically if you send SIGUSR1, it will add two lines to the log file: May 22 07:41:59.576 [notice] Our DNS cache has 3364 entries. May 22 07:41:59.576 [notice] Our DNS cache size is approximately 1022656 bytes. [tweaked a bit by nickm]
2009-05-04Update copyright to 2009.Karsten Loesing
2009-05-02Update copyright to 2009.Karsten Loesing
2009-01-22Support 64-bit time_t. Patch from Matthias Drochner. Partial backport ↵Nick Mathewson
candidate. svn:r18234
2009-01-21Make sure that even in the weird fiddly paths that lead to init_keys,Nick Mathewson
crypto_global_init gets called. Also have it be crypto_global_init that calls crypto_seed_rng, so we are not dependent on OpenSSL's RAND_poll in these fiddly cases. Should fix bug 907. Bugfix on 0.0.9pre6. Backport candidate. svn:r18210
2009-01-04Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson
The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
2008-12-24Checkpoint my big bug-891 patch.Nick Mathewson
svn:r17757
2008-12-23Document most undocumented variables.Nick Mathewson
svn:r17754
2008-12-22Add DOCDOC entries for undocumented static and global variables.Nick Mathewson
svn:r17739
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-22Add DOCDOC comments for all undocumented functions. Add missing *s to other ↵Nick Mathewson
comments so that they will get recognized as doxygen. svn:r17729
2008-12-18Why were we using gettimeofday() in second_elapsed_callback? We were only ↵Nick Mathewson
ever looking at the tv_sec field. svn:r17691
2008-12-18Replace calls to time(NULL) that occur on the order of once per read, one ↵Nick Mathewson
per write, or once per cell with calls to a function that looks at a cached value of time. This is tricksy to benchmark, since it will only help on systems where time() is a syscall and syscalls are relatively slow. svn:r17690
2008-12-18Remove fixed xxx020s; downgrade unfixed ones.Nick Mathewson
(The unfixed ones are being downgraded to regular XXXs mainly on the rationale that they don't seem to be exploding Tor, and they were apparently not showstoppers for 0.2.0.x-final.) svn:r17682
2008-12-18Call release_lockfile() before exiting.Nick Mathewson
svn:r17679
2008-12-17Remove RedirectExit feature; it has been deprecated since 0.2.0.3-alphaNick Mathewson
svn:r17663
2008-12-17Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig.Nick Mathewson
(Many users have no idea what a resolv.conf is, and shouldn't be forced to learn. The old option will keep working for now.) Also, document it. svn:r17661
2008-12-17Move edge-only flags from connection_t to edge_connection_t.Nick Mathewson
svn:r17643
2008-12-17Rename or_is_obsolete and move it to or_connection_t where it belongs.Nick Mathewson
svn:r17642
2008-12-11Avoid multiple descriptor-fetch connections to authorities. Fixes bug 366.Nick Mathewson
svn:r17594
2008-12-11Fix wide line in main.cNick Mathewson
svn:r17587
2008-12-10Add new internal-use-only option for controllers to use to prevent SIGHUP ↵Nick Mathewson
from reloading the configuration. Fixes bug 856. svn:r17567
2008-12-10Bug 691 fix: do not shutdown Tor servers right away if the network is down.Nick Mathewson
svn:r17566
2008-12-07Directory mirrors no longer fetch the v1 directory orRoger Dingledine
running-routers files. They are obsolete, and nobody asks for them anymore. This is the first step to making v1 authorities obsolete. svn:r17513
2008-12-07Add comment clarifying OpenSSL usage.Jacob Appelbaum
svn:r17498
2008-11-29clean up some log messagesRoger Dingledine
svn:r17406
2008-11-21prepare_for_poll() -- plus its mysterious cousin, prepare_for_pool() --Roger Dingledine
are long gone. svn:r17351
2008-11-10Document a couple of functions.Nick Mathewson
svn:r17239
2008-11-10beg nick for some documentation on the locking functionsRoger Dingledine
svn:r17233
2008-09-25Whitespace fixes.Nick Mathewson
svn:r16967
2008-09-25Remove now-needless _tor_dmalloc_free helper.Nick Mathewson
svn:r16964
2008-09-09Refactor unit test macros and tor_free_all() logic a bit so as to make it ↵Nick Mathewson
easier to free memory on failing tests, in order to suppress scanner warnings and to make dmalloc() usable with tests. svn:r16816
2008-09-09minor cleanups on karsten's patchRoger Dingledine
svn:r16810
2008-09-09karsten's patch for bug 767.Roger Dingledine
svn:r16808
2008-09-09Catch and report a few more bootstrapping failure cases when TorRoger Dingledine
fails to establish a TCP connection. Cleanup on 0.2.1.x. svn:r16803
2008-09-04Fix mingw build with --enable-gcc-warnings set.Nick Mathewson
svn:r16759