Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-02-11 | Remove mempools and buf freelists | Nick Mathewson | |
They have been off-by-default since 0.2.5 and nobody has complained. :) Also remove the buf_shrink() function, which hasn't done anything since we first stopped using contiguous memory to store buffers. Closes ticket 14848. | |||
2015-02-09 | Merge remote-tracking branch 'sysrqb/bug14802_025' | Nick Mathewson | |
2015-02-09 | Return 0 when detecting the amount of memory fails | Matthew Finkel | |
Fixes bug 14802; bugfix on 0.2.5.4-alpha. | |||
2015-02-06 | Avoid logging startup messages twice | Sebastian Hahn | |
2015-02-05 | use ARRAY_LENGTH macro in domain_to_string | Nick Mathewson | |
2015-02-05 | Add a string representation for LD_SCHED, and a extra sanity check. | Yawning Angel | |
This both fixes the problem, and ensures that forgetting to update domain_list in the future will trigger the bug codepath instead of a NULL pointer deref. | |||
2015-02-02 | Add more parenthesis to the definition of ARRAY_LENGTH | Nick Mathewson | |
2015-02-02 | Merge remote-tracking branch 'public/bug13319' | Nick Mathewson | |
2015-02-02 | Merge remote-tracking branch 'public/14188_part1' | Nick Mathewson | |
2015-01-30 | Fix: check r < 0 before checking errno | David Goulet | |
Signed-off-by: David Goulet <dgoulet@ev0ke.net> | |||
2015-01-30 | Fix possible infinite loop on pipe/sock_drain() | David Goulet | |
If the returned value of read/recv is 0 (meaning EOF), we'll end up in an infinite loop (active wait) until something is written on the pipe which is not really what we want here especially because those functions are called from the main thread. Signed-off-by: David Goulet <dgoulet@ev0ke.net> | |||
2015-01-30 | Merge remote-tracking branch 'public/prop227_v2' | Nick Mathewson | |
Conflicts: src/test/test_dir.c | |||
2015-01-28 | Bug #8405: Report SOCKS username/password in CIRC status events | Arthur Edelstein | |
Introduces two new circuit status name-value parameters: SOCKS_USERNAME and SOCKS_PASSWORD. Values are enclosing in quotes and unusual characters are escaped. Example: 650 CIRC 5 EXTENDED [...] SOCKS_USERNAME="my_username" SOCKS_PASSWORD="my_password" | |||
2015-01-28 | Try to work around changes in openssl 1.1.0 | Nick Mathewson | |
Prefer not to use a couple of deprecated functions; include more headers in tortls.c This is part of ticket 14188. | |||
2015-01-23 | Merge branch 'if_addr_refactoring_squashed' | Nick Mathewson | |
Conflicts: src/test/include.am src/test/test.c | |||
2015-01-23 | Refactor code that looks up addresses from interfaces | rl1987 | |
Now the code has separate implementation and examination functions, uses smartlists sanely, and has relatively decent test coverage. | |||
2015-01-22 | fix some warnings in compat_threads.c | Nick Mathewson | |
2015-01-22 | Move a redundant _GNU_SOURCE to where it is not redundant | Nick Mathewson | |
2015-01-21 | use the correct free fn. spotted by dgoulet | Nick Mathewson | |
2015-01-21 | Merge branch 'better_workqueue_v3_squashed' | Nick Mathewson | |
2015-01-21 | Support monotonic time for pthread_cond_timedwait | David Goulet | |
This is to avoid that the pthread_cond_timedwait() is not affected by time adjustment which could make the waiting period very long or very short which is not what we want in any cases. Signed-off-by: David Goulet <dgoulet@ev0ke.net> | |||
2015-01-21 | Fix up some workqueue/threading issues spotted by dgoulet. | Nick Mathewson | |
2015-01-21 | handle EINTR in compat_*threads.c | Nick Mathewson | |
2015-01-15 | Ignore warning for redundant decl in openssl/srtp.h | Nick Mathewson | |
Backports some commits from tor master. | |||
2015-01-15 | Update workqueue implementation to use a single queue for the work | Nick Mathewson | |
Previously I used one queue per worker; now I use one queue for everyone. The "broadcast" code is gone, replaced with an idempotent 'update' operation. | |||
2015-01-15 | Restrict sample values of the Laplace distribution to int64_t. | George Kadianakis | |
This helps avoid undefined behavior from casting big double values to int64_t. Fixes #14090. | |||
2015-01-14 | Incorporate some comments based on notes from dgoulet | Nick Mathewson | |
2015-01-14 | Refactor cpuworker to use workqueue/threadpool code. | Nick Mathewson | |
2015-01-14 | Fix check-spaces | Nick Mathewson | |
2015-01-14 | Test and fix workqueue_entry_cancel(). | Nick Mathewson | |
2015-01-14 | "Recursive" locks, not "reentrant" locks. Duh. | Nick Mathewson | |
2015-01-14 | Use correct (absolute) time for pthread_cond_timedwait | Nick Mathewson | |
2015-01-14 | Fix windows compilation of condition code | Nick Mathewson | |
2015-01-14 | Fix linux compilation (pipe2 needs _GNU_SOURCE) | Nick Mathewson | |
2015-01-14 | Test a little more of compat_threads.c | Nick Mathewson | |
2015-01-14 | Rename mutex_for_cond -> mutex_nonreentrant | Nick Mathewson | |
We'll want to use these for other stuff too. | |||
2015-01-14 | Documentation for new workqueue and condition and locking stuff | Nick Mathewson | |
2015-01-14 | Add a way to tell all threads to do something. | Nick Mathewson | |
2015-01-14 | Isolate the "socketpair or a pipe" logic for alerting main thread | Nick Mathewson | |
This way we can use the linux eventfd extension where available. Using EVFILT_USER on the BSDs will be a teeny bit trickier, and will require libevent hacking. | |||
2015-01-14 | Make pending work cancellable. | Nick Mathewson | |
2015-01-14 | Initial workqueue implemention, with a simple test. | Nick Mathewson | |
It seems to be working, but more tuning is needed. | |||
2015-01-14 | Specialize handling for mutexes allocated for condition variables | Nick Mathewson | |
(These must not be reentrant mutexes with pthreads.) | |||
2015-01-14 | Add tor_cond_init/uninit | Nick Mathewson | |
2015-01-14 | Add a timeout to tor_cond_wait; add tor_cond impl from libevent | Nick Mathewson | |
The windows code may need some tweaks for it to compile; I've not tested it yet. | |||
2015-01-14 | Split threading-related code out of compat.c | Nick Mathewson | |
Also, re-enable the #if'd out condition-variable code. Work queues are going to make us hack on all of this stuff a bit more closely, so it might not be a terrible idea to make it easier to hack. | |||
2015-01-13 | Merge remote-tracking branch 'andrea/ticket12585_v3' | Nick Mathewson | |
2015-01-12 | Merge remote-tracking branch 'teor/bug13111-empty-key-files-fn-empty' | Nick Mathewson | |
2015-01-12 | src/common/compat_libevent.h: include testsupport.h | Anthony G. Basile | |
When tor is configured with --enable-bufferevents, the build fails because compat_libevent.h makes use of the macro MOCK_DECL() which is defined in testsupport.h, but not included. We add the include. | |||
2015-01-10 | Fix tortls.c build with GCC<4.6 | Nick Mathewson | |
apparantly, "pragma GCC diagnostic push/pop" don't exist with older versions. Fixes bug in 740e592790f570c446cbb5e6d4a77f842f75; bug not in any released Tor. | |||
2015-01-10 | Ignore warning for redundant decl in openssl/srtp.h | Nick Mathewson | |