- 26 Mar, 2008 2 commits
-
-
Nick Mathewson authored
Fix whitespace svn:r14197
-
Nick Mathewson authored
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
-
- 25 Mar, 2008 2 commits
-
-
Nick Mathewson authored
More unit tests to improve coverage. svn:r14185
-
Nick Mathewson authored
Add some unit tests, particularly for AES counter mode. svn:r14180
-
- 21 Mar, 2008 1 commit
-
-
Roger Dingledine authored
svn:r14151
-
- 17 Mar, 2008 2 commits
-
-
Nick Mathewson authored
Fix tests and routerdesc behavior on trunk. svn:r14084
-
Nick Mathewson authored
Fix policy-related crash bug found by lodger. svn:r14077
-
- 13 Mar, 2008 3 commits
-
-
Nick Mathewson authored
Refactor log domain mask code so that nobody outside of log.c has to use SEVERITY_MASK_IDX. It is error-prone. svn:r14016
-
Peter Palfrader authored
get_interface_address6() fails regardless of the allocator used, wever logging to the original severity of 0 causes an assert error only with the bsd allocator. weird. svn:r14005
-
Peter Palfrader authored
Use proper log levels with get_interface_address6() calls so we do not die in an assert error because of invalid log levels. Should a failure here fail our test suite? svn:r14003
-
- 05 Mar, 2008 1 commit
-
-
Nick Mathewson authored
Implement domain-selection for logging. Source is documented; needs documentation in manpage (maybe). For now, see doxygen comment on parse_log_severity_config in log.c svn:r13875
-
- 27 Feb, 2008 1 commit
-
-
Nick Mathewson authored
Write some unit tests for a few functions and cases that needed them. svn:r13751
-
- 21 Feb, 2008 3 commits
-
-
Nick Mathewson authored
Fix all remaining shorten-64-to-32 errors in src/common. Some were genuine problems. Many were compatibility errors with libraries (openssl, zlib) that like predate size_t. Partial backport candidate. svn:r13665
-
Nick Mathewson authored
Patch from Sebastian Hahn: remove obsolete timeval manipulation functions. svn:r13653
-
Nick Mathewson authored
Fix a bug that kept buf_find_string_offset from finding a string at the very end of the buffer. Add a unit test for this. Also, do not save a pointer to a chunk that might get reallocated by buf_pullup(). svn:r13635
-
- 20 Feb, 2008 2 commits
-
-
Nick Mathewson authored
Unit tests for buf_find_string_offset() svn:r13632
-
Nick Mathewson authored
fix bufs in buf_pos_t implementation. svn:r13623
-
- 15 Feb, 2008 2 commits
-
-
Nick Mathewson authored
Replace the hefty tor_strpartition with a simple function to replace its only (trivial) use. svn:r13532
-
Nick Mathewson authored
Add initial unit tests for test_addr_compare_masked svn:r13531
-
- 12 Feb, 2008 1 commit
-
-
Nick Mathewson authored
Re-tune mempool parametes based on testing on peacetime: use smaller chuncks, free them a little more aggressively, and try very hard to concentrate allocations on fuller chunks. Also, lots of new documentation. svn:r13484
-
- 09 Feb, 2008 3 commits
-
-
Roger Dingledine authored
svn:r13453
-
Roger Dingledine authored
svn:r13450
-
Roger Dingledine authored
svn:r13440
-
- 08 Feb, 2008 3 commits
-
-
Nick Mathewson authored
Add a couple of (currently disabled) strategies for trying to avoid using too much ram in memory pools: prefer putting new cells in almost-full chunks, and be willing to free the last empty chunk if we have not needed it for a while. Also add better output to mp_pool_log_status to track how many mallocs a given memory pool strategy is saving us, so we can tune the mempool parameters. svn:r13428
-
Nick Mathewson authored
downgrade xxxs in test.c svn:r13426
-
Nick Mathewson authored
Clean up IPv6-testing code in test.c; resolve a bunch of XXX020s. svn:r13425
-
- 07 Feb, 2008 1 commit
-
-
Nick Mathewson authored
svn:r13412
-
- 05 Feb, 2008 1 commit
-
-
Nick Mathewson authored
As planned, rename networkstatus_vote_t to networkstatus_t, now that v3 networkstatuses are working and standard and v2 networkstatuses are obsolete. svn:r13383
-
- 10 Jan, 2008 1 commit
-
-
Roger Dingledine authored
svn:r13100
-
- 02 Jan, 2008 4 commits
-
-
Nick Mathewson authored
Allow config values in quotes to contain special characters, with full C escape syntax. With tests. Addresses bug 557. svn:r13021
-
Nick Mathewson authored
Push the strdups used for parsing configuration lines into parse_line_from_string(). This will make it easier to parse more complex value formats, which in turn will help fix bug 557 svn:r13020
-
Nick Mathewson authored
Fix bug 575: protect the list of logs with a mutex. I couldn't find any appreciable change in logging performance on osx, but ymmv. You can undef USE_LOG_MUTEX to see if stuff gets faster for you. svn:r13019
-
Nick Mathewson authored
Use reference-counting to avoid allocating a zillion little addr_policy_t objects. (This is an old patch that had been sitting on my hard drive for a while.) svn:r13017
-
- 26 Dec, 2007 1 commit
-
-
Nick Mathewson authored
Here, have some terribly clever new buffer code. It uses a mbuf-like strategy rather than a ring buffer strategy, so it should require far far less extra memory to hold any given amount of data. Also, it avoids access patterns like x=malloc(1024);x=realloc(x,1048576);x=realloc(x,1024);append_to_freelist(x) that might have been contributing to memory fragmentation. I've tested it out a little on peacetime, and it seems to work so far. If you want to benchmark it for speed, make sure to remove the #define PARANOIA; #define NOINLINE macros at the head of the module. svn:r12983
-
- 21 Dec, 2007 4 commits
-
-
Roger Dingledine authored
svn:r12907
-
Roger Dingledine authored
svn:r12905
-
Roger Dingledine authored
svn:r12901
-
Roger Dingledine authored
svn:r12900
-
- 18 Dec, 2007 2 commits
-
-
Nick Mathewson authored
Sort GeoIP results in descending order of IP counts. svn:r12863
-
Nick Mathewson authored
Document and clean-up geoip code; give it some unit tests. svn:r12856
-