aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Expand)AuthorAge
* r12499@catbus: nickm | 2007-04-23 10:42:23 -0400••• Keep a freelist of unused 4k buffer chunks, rather than wasting 8k for every inactive connection_t. svn:r10006 Nick Mathewson2007-04-23
* r12759@Kushana: nickm | 2007-04-20 08:47:20 -0400••• Track the number of connection_t separately from the number of open sockets. It is already possible to have connections that do not count: resolving conns, for one. Once we move from socketpairs to linked conns, and once we do dns proxying, there will be lots of such connections. svn:r9994 Nick Mathewson2007-04-21
* r12458@catbus: nickm | 2007-04-19 15:52:23 -0400••• Fix a bug in displaying memory pool usage. Also dump cell allocation, and track padded_cell_ts as they are allocated and freed, to make sure we are not leaking cells. svn:r9992 Nick Mathewson2007-04-19
* r12456@catbus: nickm | 2007-04-19 14:47:01 -0400••• Make dumpmemusage() dump cell pool usage information. svn:r9991 Nick Mathewson2007-04-19
* r12414@catbus: nickm | 2007-04-16 17:37:17 -0400••• More proposal-104 stuff: actually remember extra-info stuff. svn:r9975 Nick Mathewson2007-04-16
* r12353@catbus: nickm | 2007-04-11 15:58:46 -0400••• Apparently some compilers think that anonymous unions are bad C. Technically, they're right, so let's name the union in mempool.c. svn:r9946 Nick Mathewson2007-04-11
* r12349@catbus: nickm | 2007-04-11 09:18:15 -0400••• Add code to shrink the cell memory pool by discarding empty chunks that have been empty for the last 60 seconds. Also, instead of having test.c duplicate declarations for exposed functions, put them inside #ifdef foo_PRIVATE blocks in the headers. This prevents bugs where test.c gets out of sync. svn:r9944 Nick Mathewson2007-04-11
* r12344@catbus: nickm | 2007-04-10 21:27:25 -0400••• Fix documentation and usage of 2nd argument to mp_pool_new. svn:r9942 Nick Mathewson2007-04-11
* r12338@catbus: nickm | 2007-04-10 20:29:05 -0400••• Document memory pool implementation, and tweak it even mor. See? Programming is fun. svn:r9940 Nick Mathewson2007-04-11
* r12337@catbus: nickm | 2007-04-10 17:55:26 -0400••• Add support for using memory pools to allocate queued cell; pass --disable-cell-pool to configure to disable this. svn:r9939 Nick Mathewson2007-04-11
* r12336@catbus: nickm | 2007-04-10 17:34:25 -0400••• Unit tests and debugging for memory pool implementation. svn:r9938 Nick Mathewson2007-04-11
* r12335@catbus: nickm | 2007-04-10 16:53:48 -0400••• Initial version of memory pool logic. Needs unit tests. Made to be easily separable from Tor. svn:r9937 Nick Mathewson2007-04-11
* Turn bool_neq and bool_eq into macros.•••svn:r9914 Nick Mathewson2007-03-29
* r12191@catbus: nickm | 2007-03-15 15:33:37 -0400••• Check return values from pthread_mutex functions. svn:r9862 Nick Mathewson2007-03-17
* clean up some minor typos and log confusions•••svn:r9832 Roger Dingledine2007-03-15
* r12533@Kushana: nickm | 2007-03-11 05:01:15 -0400••• Oh. Tor was supposed to compile? svn:r9797 Nick Mathewson2007-03-11
* r12474@Kushana: nickm | 2007-03-06 16:10:05 -0500••• We have a PATH_SEPARATOR macro. How about we use it? svn:r9782 Nick Mathewson2007-03-09
* r12473@Kushana: nickm | 2007-03-06 15:49:45 -0500••• Excise PREDICT and PREDICT_FALSE in favor of PREDICT_LIKELY and PREDICT_UNLIKELY. svn:r9781 Nick Mathewson2007-03-09
* r12468@Kushana: nickm | 2007-03-06 15:24:00 -0500••• More unit tests: gcov is fun. svn:r9748 Nick Mathewson2007-03-06
* r12076@catbus: nickm | 2007-03-04 15:41:04 -0500••• oops; remove spurious argument from _log_prefix. svn:r9734 Nick Mathewson2007-03-04
* r12074@catbus: nickm | 2007-03-04 15:11:43 -0500••• Make all LD_BUG log messsages get prefixed with "Bug: ". Remove manually-generated "Bug: "s from log-messages. (Apparently, we remembered to add them about 40% of the time.) svn:r9733 Nick Mathewson2007-03-04
* r12011@catbus: nickm | 2007-02-28 18:13:32 -0500••• Back out insufficiently evidenced FULL_UNROLL in aes.c svn:r9693 Nick Mathewson2007-03-01
* r12006@catbus: nickm | 2007-02-28 16:06:24 -0500••• On mingw, use "%I64u" to printf/scanf 64-bit integers, instead of the usual GCC "%llu". This prevents a bug when saving 64-bit int configuration values on mingw; the high-order 32 bits would get truncated. If the value was then reloaded, disaster would occur. (Fixes bug 400 and maybe also bug 397.) Backport candidate. svn:r9691 Nick Mathewson2007-02-28
* r12001@catbus: nickm | 2007-02-28 15:24:12 -0500••• Try to build without warnings on mingw with verbose warnings on. First attempt. svn:r9688 Nick Mathewson2007-02-28
* r11998@catbus: nickm | 2007-02-28 13:56:55 -0500••• Correct an MSC_VER check. svn:r9685 Nick Mathewson2007-02-28
* r11992@catbus: nickm | 2007-02-28 12:46:32 -0500••• compile fix on mingw: mingw does not define _MSC_VER. svn:r9682 Nick Mathewson2007-02-28
* r11981@catbus: nickm | 2007-02-28 11:55:27 -0500••• Clamp declarable bandwidth at INT32_MAX, not INT_MAX. svn:r9677 Nick Mathewson2007-02-28
* r11976@catbus: nickm | 2007-02-27 19:35:59 -0500••• Add some missing (redundant but helpful in most cases) static declarations, and remove a function nobody was calling. svn:r9672 Nick Mathewson2007-02-28
* Add a missing paren, and the results of an experiment.•••svn:r9664 Nick Mathewson2007-02-27
* r11959@catbus: nickm | 2007-02-26 22:53:36 -0500••• try to make aes encryption of cells about 30-40% faster where applicable. offer not available for all architectures or all versions of openssl. svn:r9663 Nick Mathewson2007-02-27
* r11956@catbus: nickm | 2007-02-26 13:33:49 -0500••• Add a quick-and-dirty AES benchmark function to the bottom of aes.c so I can go collecting data. svn:r9660 Nick Mathewson2007-02-26
* r11954@catbus: nickm | 2007-02-26 13:01:19 -0500••• Note some optimizations that are probably not worth it for 0.1.2.x based on preliminary profiling. svn:r9659 Nick Mathewson2007-02-26
* more cleanups; getting closer•••svn:r9655 Roger Dingledine2007-02-26
* doc pedant•••svn:r9634 Roger Dingledine2007-02-24
* r11909@catbus: nickm | 2007-02-24 02:37:40 -0500••• Move tricky "delete the member of the smartlist currently under iteration" logic into its own happyfun macro. svn:r9633 Nick Mathewson2007-02-24
* cosmetic, comment, and todo fixes•••svn:r9627 Roger Dingledine2007-02-24
* r11860@catbus: nickm | 2007-02-21 00:56:15 -0500••• Another optimization suggested by Shark output: shave off >90% of uses of logv by cutting down on calls to log_debug when log actually debugging. This is showing up in some profiles bug not others, and might be as much as 2.5%. svn:r9612 Nick Mathewson2007-02-21
* r11852@catbus: nickm | 2007-02-20 17:25:17 -0500••• Reverse arguments in memset() call in no-mmap version of tor_munmap_file(). Resolves bug 392. Spotted by "fookoowa"--thanks! svn:r9604 Nick Mathewson2007-02-20
* r11850@catbus: nickm | 2007-02-20 13:34:13 -0500••• Apply patch from coderman: have posix subthreads mask out signals. This could prevent some kinds of crashes when subthreads try to handle SIGPIPEs and die in the attempt. Backport candidate. svn:r9603 Nick Mathewson2007-02-20
* r11832@catbus: nickm | 2007-02-16 15:31:59 -0500••• Fix 35 remaining DOCDOC comments. Yowza. svn:r9596 Nick Mathewson2007-02-16
* r11826@catbus: nickm | 2007-02-16 14:58:38 -0500••• Resolve 56 DOCDOC comments. svn:r9594 Nick Mathewson2007-02-16
* r11824@catbus: nickm | 2007-02-16 13:16:47 -0500••• Move all struct-offset-manipulation macros into util.h, and use them consistently. Because there are days when "SUBTYPE_P(handle, subtype, _base)" is just easier to read and write than "(basetp*)(((handle) - STRUCT_OFFSET(subtype, _base))". svn:r9592 Nick Mathewson2007-02-16
* r11791@catbus: nickm | 2007-02-13 11:36:07 -0500••• Try to fix mingw compile error reported by Li-Hui Zhou. svn:r9578 Nick Mathewson2007-02-13
* r11785@catbus: nickm | 2007-02-12 20:27:48 -0500••• Node-picking fixes: Never warn when a down node is listed in a config option (bug 348); always warn when a node in a config option is unnamed. Also, when entrynodes is configured, then build the guard list as: (parts of EntryNodes that were guards before), (the rest of EntryNodes), (the rest of the old guards). This last point ensures that EntryNode users will get the EntryNodes they want with the minimum change to their guard list. svn:r9574 Nick Mathewson2007-02-13
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500••• Update copyright dates. svn:r9570 Nick Mathewson2007-02-12
* r11774@catbus: nickm | 2007-02-12 16:31:47 -0500••• Handle errors on opening cached-routers* more uniformly and sanely: log not-found errors at level INFO, and all other errors at level WARN. Needs testing on win32. svn:r9569 Nick Mathewson2007-02-12
* r11773@catbus: nickm | 2007-02-12 15:18:48 -0500••• Implement proposal 106: stop requiring clients to have certificates, and stop checking for nicknames in certificates. [See proposal 106 for rationale.] Also improve messages when checking TLS handshake, to re-resolve bug 382. svn:r9568 Nick Mathewson2007-02-12
* more changes. i'm all caught up now.•••svn:r9495 Roger Dingledine2007-02-06
* r11639@catbus: nickm | 2007-02-05 13:33:38 -0500••• Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition. svn:r9483 Nick Mathewson2007-02-05
* r11629@catbus: nickm | 2007-02-02 15:06:17 -0500••• Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch! svn:r9477 Nick Mathewson2007-02-02