aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
Commit message (Collapse)AuthorAge
* Fix bridge statistics.Karsten Loesing2009-12-17
| | | | | | 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.
* Merge branch 'safelogging2'Nick Mathewson2009-12-15
|\ | | | | | | | | Conflicts: ChangeLog
| * Refactor the safe_str_*() API to make more sense.Nick Mathewson2009-12-15
| | | | | | | | | | | | The new rule is: safe_str_X() means "this string is a piece of X information; make it safe to log." safe_str() on its own means "this string is a piece of who-knows-what; make it safe to log".
| * Allow SafeLogging to exclude client related informationSebastian Hahn2009-12-12
| |
* | Now that FOO_free(NULL) always works, remove checks before calling it.Nick Mathewson2009-12-12
|/
* Clarification to suppress Coverity CID 405.Nick Mathewson2009-10-26
| | | | | Every or conn has an outbuf, but coverity has no way of knowing that. Add an assert to ease its conscience.
* Fix various bugs in microdescriptor caching.Nick Mathewson2009-10-18
|
* Fix a couple of smaller issues with gathering statistics.Karsten Loesing2009-09-24
| | | | | | | | | | | | | | | | | | | | - Avoid memmoving 0 bytes which might lead to compiler warnings. - Don't require relays to be entry node AND bridge at the same to time to record clients. - Fix a memory leak when writing dirreq-stats. - Don't say in the stats files that measurement intervals are twice as long as they really are. - Reduce minimum observation time for requests to 12 hours, or we might never record usage. - Clear exit stats correctly after writing them, or we accumulate old stats over time. - Reset interval start for buffer stats, too.
* Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-09-01
|\
| * Fix compile warnings on Snow LeopardSebastian Hahn2009-09-01
| | | | | | | | Big thanks to nickm and arma for helping me with this!
* | Merge branch 'maint-0.2.1'Roger Dingledine2009-08-31
|\|
| * Only send reachability status events on overall success/failureRoger Dingledine2009-08-31
| | | | | | | | | | | | | | | | | | 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.
* | Merge commit 'karsten/proposal-166-impl-master'Nick Mathewson2009-08-26
|\ \
| * | Some final (?) cleanups of proposal 166 implementation.Karsten Loesing2009-08-19
| | |
| * | Write all statistics to disk exactly every 24 hours.Karsten Loesing2009-08-19
| | |
| * | Remove ./configure option for cell statistics.Karsten Loesing2009-08-17
| | |
* | | Survive unparseable cached cert fileRoger Dingledine2009-08-20
|/ /
* | If configured, write cell statistics to disk periodically.Karsten Loesing2009-07-05
| |
* | Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-06-30
|\|
| * the third piece of bug 969 fixingRoger Dingledine2009-06-30
| | | | | | | | | | | | | | | | | | 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.
* | Isolate Libevent API dependency to just main.c and dns.c in src/or.Nick Mathewson2009-06-12
| | | | | | | | | | | | 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.
* | Make Tor compile with Libevent 1.0 again.Nick Mathewson2009-06-12
| |
* | Update Tor to use Libevent 2.0 APIs when available.Nick Mathewson2009-06-12
| | | | | | | | | | | | | | | | | | | | 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).
* | Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-06-04
|\|
| * Fix gprof bottlenecks on exit nodes found by Jacob.Nick Mathewson2009-06-03
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'hardware_accel_improvements'Nick Mathewson2009-05-31
|\ \
| * | Add support for dynamic OpenSSL hardware crypto acceleration engines.Martin Peck2009-05-23
| | |
* | | Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-05-27
|\ \ \ | | |/ | |/|
| * | Spell-check Tor.Nick Mathewson2009-05-27
| | |
| * | Update copyright to 2009.Karsten Loesing2009-05-04
| | |
* | | Change the way how directories that are configured with --enable-geoip-stats ↵Karsten Loesing2009-05-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | fix a commentRoger Dingledine2009-05-24
| |/ |/|
* | Log the number and size of DNS cache entries on SIGUSR1.Jacob Appelbaum2009-05-22
| | | | | | | | | | | | | | | | | | 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]
* | Update copyright to 2009.Karsten Loesing2009-05-02
|/
* Support 64-bit time_t. Patch from Matthias Drochner. Partial backport ↵Nick Mathewson2009-01-22
| | | | | | candidate. svn:r18234
* Make sure that even in the weird fiddly paths that lead to init_keys,Nick Mathewson2009-01-21
| | | | | | | | | | 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
* Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson2009-01-04
| | | | | | | | 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
* Checkpoint my big bug-891 patch.Nick Mathewson2008-12-24
| | | | svn:r17757
* Document most undocumented variables.Nick Mathewson2008-12-23
| | | | svn:r17754
* Add DOCDOC entries for undocumented static and global variables.Nick Mathewson2008-12-22
| | | | svn:r17739
* Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson2008-12-22
| | | | svn:r17734
* Add DOCDOC comments for all undocumented functions. Add missing *s to other ↵Nick Mathewson2008-12-22
| | | | | | comments so that they will get recognized as doxygen. svn:r17729
* Why were we using gettimeofday() in second_elapsed_callback? We were only ↵Nick Mathewson2008-12-18
| | | | | | ever looking at the tv_sec field. svn:r17691
* Replace calls to time(NULL) that occur on the order of once per read, one ↵Nick Mathewson2008-12-18
| | | | | | 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
* Remove fixed xxx020s; downgrade unfixed ones.Nick Mathewson2008-12-18
| | | | | | (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
* Call release_lockfile() before exiting.Nick Mathewson2008-12-18
| | | | svn:r17679
* Remove RedirectExit feature; it has been deprecated since 0.2.0.3-alphaNick Mathewson2008-12-17
| | | | svn:r17663
* Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig.Nick Mathewson2008-12-17
| | | | | | | (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
* Move edge-only flags from connection_t to edge_connection_t.Nick Mathewson2008-12-17
| | | | svn:r17643
* Rename or_is_obsolete and move it to or_connection_t where it belongs.Nick Mathewson2008-12-17
| | | | svn:r17642