Age | Commit message (Collapse) | Author |
|
Brown-paper-bag time. We were failing to count all the sockets from accept().
svn:r13595
|
|
Try to *fix* the socket counting problem, and add an info log to detect whether we really fixed it
svn:r13580
|
|
Fix all but 2 DOCDOC items; defer many XXX020s (particularly those where fixing them would fix no bugs at the risk of introducing some bugs).
svn:r13529
|
|
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
|
|
svn:r13412
|
|
Fix a couple of XXX020 items. Also, disable all "condition" sychronization code, since Tor does not use it yet
svn:r13380
|
|
while. Remove the special-case, remove the related XXXX020s, and add useful comments instead.
svn:r13377
|
|
Another test for the increasingly bad check-spaces style checker to check: #else\n#if is almost a sure sign of a failure to use #elif. Fortunately, we only did that 3 times.
svn:r13039
|
|
svn:r12786
|
|
Fix compilation when --disable-threads is passed in.
svn:r12768
|
|
Fix bug reported by Steve Murphy on or-talk: detect the s6_addr32 and s6_addr16 fields via autoconf.
svn:r12679
|
|
Change tor_addr_t to be a tagged union of in_addr and in6_addr, not of sockaddr_in and sockaddr_in6. It's hardly used in the main code as it is, but let's get it right before it gets popular.
svn:r12660
|
|
Check a platform assumption we have made without checking for too long: "Characters are represented in ascii."
svn:r12088
|
|
Another attempt to confirm to msvc for bug 482.
svn:r11162
|
|
Compile without warnings on MinGW, even with --enable-gcc-warnings enabled.
svn:r11157
|
|
Try to fix bug 482: do not rely on s6_addr16 or s6_addr32 on MSVC. How ugly.
svn:r11155
|
|
Try (once again) to fix mingw build wrt detecting ipv6 types.
svn:r11037
|
|
Rename IN4_ADDR and IN6_ADDR to try to avoid conflicting with Windows definitions. This may fix the windows build.
svn:r11011
|
|
Change "IN_ADDR" macro to "IN4_ADDR" in an attempt to fix mingw compilation
svn:r10963
|
|
whitespace fixes
svn:r10935
|
|
Apparently, this problem can occur on the whole BSD family. "Yay."
svn:r10884
|
|
Apparently, OSX does not define s6_addr32 or s6_addr16. How silly.
svn:r10883
|
|
Merge in some generic address manipulation code from croup. Needs some work.
svn:r10880
|
|
Switch windows locking implementation to CRITICAL_SECTION, not Mutex: Mutex is heavier-weight, and meant for multi-process situations.
svn:r10739
|
|
Implement conditions in compat.c; switch windows to use "critical sections" instead of mutexes. Apparently, mutexes are for IPC and critical sections are for multithreaded.
svn:r10716
|
|
Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere.
svn:r10645
|
|
Fix windows build.
svn:r10424
|
|
First bare stubs of ipv6 work: commit some (untested, hence doublessly broken) implementations of inet_ntop/pton for systems that lack them.
svn:r10326
|
|
Add math functions to round values to the nearest power of 2. Make mempools more careful about making sure that the size of their chunks is a little less than a power of 2, not a little more.
svn:r10304
|
|
Partial backport candidate: do not rely on finding a \0 after an mmaped() router/extrainfo file. Also, set journal length correctly when starting up.
svn:r10248
|
|
Enable (and cope with) more GCC 4.2 warnings.
svn:r10196
|
|
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
|
|
Excise PREDICT and PREDICT_FALSE in favor of PREDICT_LIKELY and PREDICT_UNLIKELY.
svn:r9781
|
|
More unit tests: gcov is fun.
svn:r9748
|
|
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
|
|
Correct an MSC_VER check.
svn:r9685
|
|
compile fix on mingw: mingw does not define _MSC_VER.
svn:r9682
|
|
Update copyright dates.
svn:r9570
|
|
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
|
|
Audit non-const char arguments; make a lot more of them const.
svn:r9466
|
|
Add string.h include to compat.h so that strlcpy() and strlcat() will always be defined after including compat.h. This should resolve warnings on centos.
svn:r8824
|
|
Add unit tests for tor_mmap_file(); make tor_mmap_t.size always be the size of the file (not the size of the mapping); add an extra argument to read_file_to_str() so it can return the size of the result string.
svn:r8762
|
|
svn:r8427
|
|
Fix spaces; restore support for mapping files over 4GB on win32 (?)
svn:r8326
|
|
- made configure link to required system dll's if building for win32
- added diffs for libevent 1.1b
- forced user to turn off eventdns if win32 is set
- cleaned up tor_mmap_file()_win32 (not sure if it's stable)
- cleaned up some warnings and typos
svn:r8322
|
|
Fix bug 327 (part 2): Cast char to unsigned char before passing to toupper/tolower. (Follow the same idiom as with isupper and friends, in case we run into the same problem on SGI or whereever it was.)
svn:r8310
|
|
Fix bug 327 (part 1): Use correct macro to test for GCC 3 or later.
svn:r8309
|
|
Fix compilation on GCC2 by disabling fun attributes unless __GNUC_MAJOR__ >= 3.
svn:r8303
|
|
Aw, crap. Non-gcc bug. We need regular windows builds.
svn:r8259
|
|
And another GCC change: predict that tor_frees() are usually real frees, and tor_asserts() usually wont happen. Other test should wait till -fprofile-arcs
svn:r7022
|