aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAge
* r16127@tombo: nickm | 2008-06-10 14:03:01 -0400Nick Mathewson2008-06-10
| | | | | | | Improved code for counting clients by country: support recording by number of directory status requests in addition to number of IPs seen. svn:r15097
* Remov unused macro in crypto.cNick Mathewson2008-06-04
| | | | svn:r14950
* Ouch. We were sometimes getting openssl compression by default. This is ↵Nick Mathewson2008-05-29
| | | | | | pointless for us, since the overwhelming majority of our cells are encrypted, full of compressed data, or both. This is also harmful, since doing piles of compression is not cheap. Backport candidate once more tested. svn:r14830
* New code to implement proposal for local geoip stats. Only enabled with ↵Nick Mathewson2008-05-29
| | | | | | --enable-geoip-stats passed to configure. svn:r14802
* If the user has an openssl that supports my "release buffer ram" patch, use it.Nick Mathewson2008-05-19
| | | | svn:r14671
* r19795@catbus: nickm | 2008-05-16 14:54:24 -0400Nick Mathewson2008-05-16
| | | | | | | Rename tor_addr_t manipulation functions for a consistent style. svn:r14639
* r15558@tombo: nickm | 2008-05-09 04:35:12 -0400Nick Mathewson2008-05-09
| | | | | | | New (temporary) tool to dump the modulus of a key. May help with a project of weasel's. svn:r14580
* r19613@catbus: nickm | 2008-05-05 19:57:06 -0400Nick Mathewson2008-05-05
| | | | | | | Log correct openssl buf capacity when using my sooper sekrit buffer hack. This will help test the aforementioned ssbh. svn:r14567
* make check-spaces wants a newline at the end of tortlsRoger Dingledine2008-04-29
| | | | svn:r14508
* r15304@tombo: nickm | 2008-04-23 16:31:40 -0400Nick Mathewson2008-04-23
| | | | | | | 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
* r15251@tombo: nickm | 2008-04-22 11:59:46 -0400Nick Mathewson2008-04-22
| | | | | | | On platforms using pthreads, allow a thread to acquire a lock it already holds. This is crucial for logging: otherwise any log message thrown from inside the logging process (especially from control.c) will deadlock. Win32 CriticalSections are already recursive. Bug spotted by nwf. Bugfix on 0.2.0.16-alpha. Backport candidate. I hope this is portable. svn:r14406
* r15161@31-33-107: nickm | 2008-04-10 11:11:58 -0400Nick Mathewson2008-04-10
| | | | | | | 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
* r19283@catbus: nickm | 2008-04-09 21:44:18 -0400Nick Mathewson2008-04-10
| | | | | | | The optimist calls the glass half full. The pessimist calls it half empty. The engineer says it is twice as large as it needs to be. In this case, the engineer says that the default smartlist size is twice as large as it needs to be and wouldn't it be nice to save half a megabyte with a one-line patch? svn:r14341
* r15120@tombo: nickm | 2008-04-08 18:01:58 -0400Nick Mathewson2008-04-08
| | | | | | | Add very short 0.2.1.x list based on discussion from arma. needs fleshing out and merging with other lists. svn:r14324
* r19249@catbus: nickm | 2008-04-08 14:04:02 -0400Nick Mathewson2008-04-08
| | | | | | | Oops. Fix one last memarea freelist bug. svn:r14322
* r19247@catbus: nickm | 2008-04-08 13:50:01 -0400Nick Mathewson2008-04-08
| | | | | | | Fix behavior of memarea freelists. svn:r14321
* r19245@catbus: nickm | 2008-04-08 13:33:27 -0400Nick Mathewson2008-04-08
| | | | | | | Oops. It turns out that there are some subtle differences between >= and <. svn:r14320
* r19243@catbus: nickm | 2008-04-08 13:28:59 -0400Nick Mathewson2008-04-08
| | | | | | | Use a freelist to hold a few recent memarea chunks. We do a kazillion memarea allocs and frees; that cant be good for us. svn:r14319
* r19233@catbus: nickm | 2008-04-08 13:06:34 -0400Nick Mathewson2008-04-08
| | | | | | | When we remove old routers, use Bloom filters rather than a digestmap-based set in order to tell which ones we absolutely need to keep. This will save us roughly a kazillion little short-lived allocations for hash table entries. svn:r14318
* r19229@catbus: nickm | 2008-04-07 12:28:22 -0400Nick Mathewson2008-04-07
| | | | | | | Add a new SMARTLIST_FOREACH_JOIN macro to iterate through two sorted lists in lockstep. This happens at least 3 times in the code so far, and is likely to happen more in the future. Previous attempts to do so proved touchy, tricky, and error-prone: now, we only need to get it right in one place. svn:r14309
* r19201@catbus: nickm | 2008-04-04 14:23:19 -0400Nick Mathewson2008-04-04
| | | | | | | Better macro documentation svn:r14298
* Add --hush switch.Peter Palfrader2008-03-27
| | | | | | | | | New --hush command-line option similar to --quiet. While --quiet disables all logging to the console on startup, --hush limits the output to messages of warning and error severity. svn:r14222
* r19089@catbus: nickm | 2008-03-27 11:05:23 -0400Nick Mathewson2008-03-27
| | | | | | | Free some static hashtables and the log mutex on exit. Backport candidate. svn:r14212
* fix a leak when adding a temp logRoger Dingledine2008-03-26
| | | | svn:r14203
* fix mem leak in parsing log config linesRoger Dingledine2008-03-26
| | | | svn:r14202
* r19072@catbus: nickm | 2008-03-26 13:50:24 -0400Nick Mathewson2008-03-26
| | | | | | | Add code to debug memory area size. Use results of this code to set a couple of area sizes more sanely. svn:r14201
* r19062@catbus: nickm | 2008-03-26 12:56:25 -0400Nick Mathewson2008-03-26
| | | | | | | Fix whitespace svn:r14197
* r19049@catbus: nickm | 2008-03-26 12:33:25 -0400Nick Mathewson2008-03-26
| | | | | | | Add new stacklike, free-all-at-once memory allocation strategy. Use it when parsing directory information. This helps parsing speed, and may well help fragmentation some too. hidden-service-related stuff still uses the old tokenizing strategies. svn:r14194
* r19041@catbus: nickm | 2008-03-25 16:20:42 -0400Nick Mathewson2008-03-25
| | | | | | | More unit tests to improve coverage. svn:r14185
* r19039@catbus: nickm | 2008-03-25 12:15:58 -0400Nick Mathewson2008-03-25
| | | | | | | Add some unit tests, particularly for AES counter mode. svn:r14180
* correct a confusing log messageRoger Dingledine2008-03-24
| | | | svn:r14165
* r19004@catbus: nickm | 2008-03-21 15:18:43 -0400Nick Mathewson2008-03-21
| | | | | | | Use RAND_poll() again: the bug that made us stop using it has been fixed. svn:r14150
* r18929@catbus: nickm | 2008-03-18 12:08:16 -0400Nick Mathewson2008-03-18
| | | | | | | Detect errors from directory listing correctly on win32. Bug found by lodger. svn:r14102
* r18927@catbus: nickm | 2008-03-18 11:11:49 -0400Nick Mathewson2008-03-18
| | | | | | | Combine common code in set_max_file_descriptors(): all that varies from platform to platform in the no-getrlimit() case is the connection limit and the platform name. svn:r14101
* r18923@catbus: nickm | 2008-03-18 11:01:22 -0400Nick Mathewson2008-03-18
| | | | | | | Add missing typecasts to log message in set_max_file_descriptors to tell gcc everything is okay on windows. Fixes bug 630. svn:r14099
* r18919@catbus: nickm | 2008-03-18 10:53:38 -0400Nick Mathewson2008-03-18
| | | | | | | Forward-port bug 622 fix as diagnosed by lodger. svn:r14096
* r18890@catbus: nickm | 2008-03-17 13:19:29 -0400Nick Mathewson2008-03-17
| | | | | | | Clarify documentation for file_status a little svn:r14079
* And use 16k pages on ia64. Maybe this should be a configure thingPeter Palfrader2008-03-17
| | | | svn:r14073
* r18878@catbus: nickm | 2008-03-17 00:11:02 -0400Nick Mathewson2008-03-17
| | | | | | | Clean up an overwide line. svn:r14072
* r18861@catbus: nickm | 2008-03-16 23:22:56 -0400Nick Mathewson2008-03-17
| | | | | | | Fix a couple of bugs in setting control log callback severity. svn:r14065
* r18852@catbus: nickm | 2008-03-16 22:47:19 -0400Nick Mathewson2008-03-17
| | | | | | | Downgrade "sslv3 alert handshake failure" message to info. svn:r14057
* r18850@catbus: nickm | 2008-03-16 22:35:38 -0400Nick Mathewson2008-03-17
| | | | | | | Use 8k pages in openbsd malloc code on alpha. Bug and solution found by weasel. Also, when initializing openbsd malloc code, check that compiled page size matches output of getpagesize(). svn:r14056
* r18804@catbus: nickm | 2008-03-13 18:18:31 -0400Nick Mathewson2008-03-13
| | | | | | | Refactor log domain mask code so that nobody outside of log.c has to use SEVERITY_MASK_IDX. It is error-prone. svn:r14016
* r18803@catbus: nickm | 2008-03-13 17:59:25 -0400Nick Mathewson2008-03-13
| | | | | | | Fix behavior of switch_logs_debug() in trunk. Fixes bug 626. Bugfix on r13875. svn:r14015
* r18793@catbus: nickm | 2008-03-13 14:09:19 -0400Nick Mathewson2008-03-13
| | | | | | | Add a malloc_good_size() implementation to OpenBSD_malloc_Linux.c. Also, make configure.in not use support functions for the platform malloc when we are not using the platform mallocs. svn:r14010
* Assert that severity in logv() is sane. Interesting effects otherwise (It ↵Peter Palfrader2008-03-13
| | | | | | is being used as an array index) svn:r14006
* r18783@catbus: nickm | 2008-03-13 11:06:45 -0400Nick Mathewson2008-03-13
| | | | | | | Oops, do a better fix for that. svn:r14001
* r18781@catbus: nickm | 2008-03-13 11:00:51 -0400Nick Mathewson2008-03-13
| | | | | | | Have OpenBSD_malloc_Linux.c use SIZE_T_MAX from torint.h, instead of checking cpu macros. There is always one more cpu you havent checked for. svn:r14000
* I wonder what the DISGARD service isPeter Palfrader2008-03-13
| | | | svn:r13999
* r18753@catbus: nickm | 2008-03-11 14:56:39 -0400Nick Mathewson2008-03-11
| | | | | | | Make some assert()s into tor_assert()s. Make some tor_assert()s called from logging into assert()s, and document why. svn:r13977