aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-08-13Decouple routerlist_retry_directory_downloads() from the blobNick Mathewson
Instead of having it call update_all_descriptor_downloads and update_networkstatus_downloads directly, we can have it cause them to get rescheduled and called from run_scheduled_events. Closes ticket 16789.
2015-08-12Merge branch 'bug16539'Nick Mathewson
2015-08-12whoops; add a stale changes fileNick Mathewson
2015-08-12Fix a memory leak when adding an ri with expired ed certsNick Mathewson
Fixes bug 16539; bugfix on 0.2.7.2-alpha.
2015-08-12Merge branch 'ticket16762_squashed'Nick Mathewson
2015-08-12Decouple the backend for directory_all_unreachable to simplify our CFGNick Mathewson
See ticket 16762.
2015-08-11Merge branch 'bug16389_027_03_squashed'Nick Mathewson
2015-08-11Expire after 5 minutes rend cache failure entriesDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Add created timestamp to a rend cache failure entryDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Fix typo in comment about digest256map_tDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Use an enum for INTRO_POINT_FAILURE_*David Goulet
Safer, wiser, stronger! Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Purge client HS failure cache on NEWNYMDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Add rend failure cacheDavid Goulet
When fetching a descriptor, we know test every introduction points in it against our rend failure cache to know if we keep it or not. For this to work, now everytime an introduction points is discareded (ex: receiving a NACK), we note it down in our introduction cache. See rendcache.c for a detailed explanation of the cache's behavior. Fixes #16389 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Fix windows compilationNick Mathewson
2015-08-11Fix a 32-bit compilation warningNick Mathewson
2015-08-11Make HSDir depend on Running/Valid again.Nick Mathewson
When we removed Running/Valid checks from Fast and Stable in 8712, I removed them from HSDir too, which apparently wasn't a good idea. Reverts part of a65e835800b1af2c2a4c215b. Fixes bug 16524. Bugfix on 0.2.7.2-alpha.
2015-08-10Merge remote-tracking branch 'public/feature16734'Nick Mathewson
2015-08-10Remove a 9-function strongly connected component of tor's callgraph.Nick Mathewson
microdesc_free_() called get_microdesc_cache(), which had the fun side-effect of potentially reloading the whole cache from disk. Replace it with a variant that doesn't.
2015-08-10Update callgraph code to find and output strongly connected componentsNick Mathewson
2015-08-10Merge remote-tracking branch 'dgoulet/bug16274_027_02'Nick Mathewson
2015-08-06Merge remote-tracking branch 'public/decouple-write'Nick Mathewson
2015-08-06Merge remote-tracking branch 'public/bug16286'Nick Mathewson
2015-08-05add dSYM files to gitignore (they are an osx thing)Nick Mathewson
2015-08-05Update tor-fw-helper URLNick Mathewson
2015-08-05Add a compat function to check how much disk space is free.Nick Mathewson
Closes ticket 16734.
2015-08-05Set the open file limit to the current value before changing itDavid Goulet
If setrlimit() failed, max_out wasn't set in set_max_file_descriptors() ending in a state where we don't use ULIMIT_BUFFER for things like tor private key files. Also fix the set_max_file_descriptors() documentation. Fixes #16274 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-05Write a bunch more test for doc/WritingTestsNick Mathewson
2015-08-05Allow cov-display to take directories as argumentsNick Mathewson
2015-08-05Let's try to get test_workqueue working on windowsNick Mathewson
2015-08-04Merge remote-tracking branch 'public/bug13338'Nick Mathewson
2015-08-04Switch order of unblocking threads and releasing the mutex.cypherpunks
According to POSIX, the mutex must be locked by the thread calling the signal functions to ensure predictable scheduling behavior. Found the issue using Helgrind which gave the warning `dubious: associated lock is not held by any thread`.
2015-08-03Update doc/HACKING with more coverage instructionsNick Mathewson
2015-08-03When building with coverage, run chutney with coverageNick Mathewson
Previously, this required me to do stuff like 'cp src/or/tor-cov src/or/tor' , which is pretty embarrassing.
2015-08-03Improved targets for "run all the tests, no, all of them."Nick Mathewson
2015-07-31Move formatting functions around.Nick Mathewson
The base64 and base32 functions used to be in crypto.c; crypto_format.h had no header; some general-purpose functions were in crypto_curve25519.c. This patch makes a {crypto,util}_format.[ch], and puts more functions there. Small modules are beautiful!
2015-07-31Improve log messages for problems about ed25519 keypinningNick Mathewson
Fixes 16286; bugfix on 0.2.7.2-alpha.
2015-07-30Add get_max_sockets() and remove dead codeDavid Goulet
The control port was using set_max_file_descriptors() with a limit set to 0 to query the number of maximum socket Tor can use. With the recent changes to that function, a check was introduced to make sure a user can not set a value below the amount we reserved for non socket. This commit adds get_max_sockets() that returns the value of max_sockets so we can stop using that "setter" function to get the current value. Finally, the dead code is removed that is the code that checked for limit equal to 0. From now on, set_max_file_descriptors() should never be used with a limit set to 0 for a valid use case. Fixes #16697 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-07-30Do not autoflush control connections as their outbufs get bigNick Mathewson
Doing this is no longer necessary, and it leads to weird recursions in our call graph. Closes ticket 16480.
2015-07-30whitespace fixNick Mathewson
2015-07-30changes file for callgraph scriptsNick Mathewson
2015-07-30Check in some scripts I use for callgraph analysis.Nick Mathewson
2015-07-30Wrap windows-only C files in #ifdef _WIN32Nick Mathewson
This should make some scripts and IDEs happier.
2015-07-29Merge remote-tracking branch 'origin/maint-0.2.6'Nick Mathewson
2015-07-29Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6Nick Mathewson
2015-07-29Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5Nick Mathewson
2015-07-29Merge remote-tracking branch 'teor/feature14175-chutney-performance-v2'Nick Mathewson
2015-07-29Update geoip and geoip6 to the July 8 2015 database.Karsten Loesing
2015-07-28Merge remote-tracking branch 'linus/bug_11061'Nick Mathewson
2015-07-27Bump version to 0.2.7.2-alpha-devNick Mathewson
2015-07-27Fold final entries into changelogtor-0.2.7.2-alphaNick Mathewson