summaryrefslogtreecommitdiff
path: root/src/or/main.c
AgeCommit message (Collapse)Author
2009-09-01Fix compile warnings on Snow LeopardSebastian Hahn
Big thanks to nickm and arma for helping me with this!
2009-08-31Only send reachability status events on overall success/failureRoger Dingledine
We were telling the controller about CHECKING_REACHABILITY and REACHABILITY_FAILED status events whenever we launch a testing circuit or notice that one has failed. Instead, only tell the controller when we want to inform the user of overall success or overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported by SwissTorExit.
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-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-27Spell-check Tor.Nick Mathewson
2009-05-04Update 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
2008-09-01Add a lockfile to the Tor data directory to avoid situations where two Tors ↵Nick Mathewson
start with the same datadir, or where a --list-fingerprints races with a server to create keys, or such. svn:r16722
2008-08-12Next patch from Karsten: client-side configuration stuff for proposal 121.Nick Mathewson
svn:r16510
2008-08-05 r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400Nick Mathewson
Initial conversion of uint32_t addr to tor_addr_t addr in connection_t and related types. Most of the Tor wire formats using these new types are in, but the code to generate and use it is not. This is a big patch. Let me know what it breaks for you. svn:r16435
2008-06-17Send an initial "Starting" bootstrap status event, so we have aRoger Dingledine
state to start out in. svn:r15326
2008-06-10Fix last geoip bugs.Nick Mathewson
svn:r15106
2008-06-09extra points if you make it compile. boy, i'm on a roll.Roger Dingledine
svn:r15077
2008-06-09when we haven't had any application requests lately, don't botherRoger Dingledine
logging when we have expired a bunch of descriptors. svn:r15074
2008-05-29Fix warning when compiling with dmalloc.Nick Mathewson
svn:r14829
2008-05-29New code to implement proposal for local geoip stats. Only enabled with ↵Nick Mathewson
--enable-geoip-stats passed to configure. svn:r14802
2008-04-23 r15304@tombo: nickm | 2008-04-23 16:31:40 -0400Nick Mathewson
Forward-port: I had apparently broken OSX and Freebsd by not initializing threading before we initialize the logging system. This patch should do so, and fix bug 671. svn:r14430
2008-04-10 r15161@31-33-107: nickm | 2008-04-10 11:11:58 -0400Nick Mathewson
Make dumpstats() log the size and fullness of openssl-internal buffers, so I can test my hypothesis that many of them are empty, and my alternative hypothesis that many of them are mostly empty, against the null hypothesis that we really need to be burning 32K per open OR connection on this. svn:r14350