]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
10 years agoExpand changes file
Nick Mathewson [Tue, 25 Aug 2015 13:37:52 +0000 (09:37 -0400)] 
Expand changes file

10 years agoLog malformed hostnames in socks5 request respecting SafeLogging
Andreas Stieger [Sun, 23 Aug 2015 23:04:44 +0000 (01:04 +0200)] 
Log malformed hostnames in socks5 request respecting SafeLogging

10 years agoIs this the syntax that will make freebsd make happy?
Nick Mathewson [Fri, 21 Aug 2015 16:03:05 +0000 (12:03 -0400)] 
Is this the syntax that will make freebsd make happy?

10 years agoDo not try to chmod test_keygen.sh: It is not generated by configure.
Nick Mathewson [Fri, 21 Aug 2015 15:10:49 +0000 (11:10 -0400)] 
Do not try to chmod test_keygen.sh: It is not generated by configure.

10 years agoMerge branch 'workqueue_squashed'
Nick Mathewson [Fri, 21 Aug 2015 14:37:01 +0000 (10:37 -0400)] 
Merge branch 'workqueue_squashed'

10 years agoRemove tor-fw-helper more thoroughly
Sebastian Hahn [Thu, 20 Aug 2015 18:33:38 +0000 (20:33 +0200)] 
Remove tor-fw-helper more thoroughly

10 years agoFix a bunch of check-spaces complaints
Sebastian Hahn [Thu, 20 Aug 2015 18:28:47 +0000 (20:28 +0200)] 
Fix a bunch of check-spaces complaints

10 years agoObserve workqueue_reply_t in check-spaces
Sebastian Hahn [Thu, 20 Aug 2015 18:42:19 +0000 (20:42 +0200)] 
Observe workqueue_reply_t in check-spaces

10 years agoEnsure worker threads actually exit when it is time
Sebastian Hahn [Thu, 20 Aug 2015 14:48:13 +0000 (16:48 +0200)] 
Ensure worker threads actually exit when it is time

This includes a small refactoring to use a new enum (workqueue_reply_t)
for the return values instead of just ints.

10 years agoRename EVENT_SIGNAL -> EVENT_GOT_SIGNAL
Nick Mathewson [Thu, 20 Aug 2015 22:42:20 +0000 (18:42 -0400)] 
Rename EVENT_SIGNAL -> EVENT_GOT_SIGNAL

This avoids a conflict with a macro decl from libevent 1.x.

Fixes bug 16867; bug not in any released Tor.

10 years agoNew testcase exposing bug during threadpool shutdown
Sebastian Hahn [Thu, 20 Aug 2015 17:57:08 +0000 (19:57 +0200)] 
New testcase exposing bug during threadpool shutdown

We don't want to accept any work after one of our worker functions has
returned WQ_RPL_SHUTDOWN. This testcase currently fails, because we do
not actually stop any of the worker threads.

10 years agoMerge branch 'ed25519_keygen_squashed'
Nick Mathewson [Wed, 19 Aug 2015 17:36:59 +0000 (13:36 -0400)] 
Merge branch 'ed25519_keygen_squashed'

10 years agochanges file for ed25519_keygen branch
Nick Mathewson [Tue, 11 Aug 2015 15:21:03 +0000 (11:21 -0400)] 
changes file for ed25519_keygen branch

10 years agoMore log messages for keygen problems
Nick Mathewson [Mon, 10 Aug 2015 15:04:53 +0000 (11:04 -0400)] 
More log messages for keygen problems

10 years agoExplain better why we are about to load the master key.
Nick Mathewson [Mon, 10 Aug 2015 14:35:47 +0000 (10:35 -0400)] 
Explain better why we are about to load the master key.

10 years agoDon' call failure to get keys a bug; it's possible now.
Nick Mathewson [Mon, 10 Aug 2015 14:02:33 +0000 (10:02 -0400)] 
Don' call failure to get keys a bug; it's possible now.

10 years agoWhen we infer the master key from the certificate, save it to disk.
Nick Mathewson [Fri, 7 Aug 2015 19:22:23 +0000 (15:22 -0400)] 
When we infer the master key from the certificate, save it to disk.

10 years agoDocument test_keygen.sh a little more
Nick Mathewson [Thu, 6 Aug 2015 15:58:50 +0000 (11:58 -0400)] 
Document test_keygen.sh a little more

10 years agoAdd test_keygen tests for all log outputs; improve keygen outputs.
Nick Mathewson [Thu, 6 Aug 2015 15:57:00 +0000 (11:57 -0400)] 
Add test_keygen tests for all log outputs; improve keygen outputs.

10 years agoSuppress fingerprint display in test_keygen.sh
Nick Mathewson [Thu, 6 Aug 2015 15:30:04 +0000 (11:30 -0400)] 
Suppress fingerprint display in test_keygen.sh

10 years agoIntegreate test_keygen.sh into 'make check'.
Nick Mathewson [Thu, 6 Aug 2015 15:27:25 +0000 (11:27 -0400)] 
Integreate test_keygen.sh into 'make check'.

10 years agoResolve failing test_keygen tests.
Nick Mathewson [Thu, 6 Aug 2015 15:12:44 +0000 (11:12 -0400)] 
Resolve failing test_keygen tests.

10 years agoCheckpoint work on ed25519 keygen improvements.
Nick Mathewson [Thu, 6 Aug 2015 01:09:21 +0000 (21:09 -0400)] 
Checkpoint work on ed25519 keygen improvements.

Needs changes file, documentation, test integration, more tests.

10 years agoMerge remote-tracking branch 'teor/feature14882-TestingDirAuthVoteIsStrict-v3'
Nick Mathewson [Tue, 18 Aug 2015 13:53:50 +0000 (09:53 -0400)] 
Merge remote-tracking branch 'teor/feature14882-TestingDirAuthVoteIsStrict-v3'

10 years agoUpdate to latest trunnel
Nick Mathewson [Tue, 18 Aug 2015 13:47:36 +0000 (09:47 -0400)] 
Update to latest trunnel

10 years agoMerge remote-tracking branch 'arma/bug16844-logs'
Nick Mathewson [Tue, 18 Aug 2015 13:19:39 +0000 (09:19 -0400)] 
Merge remote-tracking branch 'arma/bug16844-logs'

10 years agoMerge branch 'decouple_controller_events_squashed'
Nick Mathewson [Tue, 18 Aug 2015 12:56:31 +0000 (08:56 -0400)] 
Merge branch 'decouple_controller_events_squashed'

10 years agoLog meaningful messages before failing on windows with threadlocal.
Nick Mathewson [Tue, 18 Aug 2015 12:37:15 +0000 (08:37 -0400)] 
Log meaningful messages before failing on windows with threadlocal.

10 years agoImprove threadlocal documentation
Nick Mathewson [Tue, 18 Aug 2015 12:36:58 +0000 (08:36 -0400)] 
Improve threadlocal documentation

10 years agoAdd comments for thread-local storage functions
Nick Mathewson [Mon, 17 Aug 2015 17:36:56 +0000 (13:36 -0400)] 
Add comments for thread-local storage functions

10 years agoUse thread-local storage to block event_queue recursion.
Nick Mathewson [Wed, 12 Aug 2015 14:49:19 +0000 (10:49 -0400)] 
Use thread-local storage to block event_queue recursion.

10 years agoMultithreading support for event-queue code.
Nick Mathewson [Wed, 12 Aug 2015 14:10:11 +0000 (10:10 -0400)] 
Multithreading support for event-queue code.

10 years agoRefactor initialization logic for control-event-queue
Nick Mathewson [Wed, 12 Aug 2015 13:35:26 +0000 (09:35 -0400)] 
Refactor initialization logic for control-event-queue

This puts the init logic in a separate function, which we will need
once we have locking.

10 years agoMake the control/events test run TT_FORK
Nick Mathewson [Wed, 12 Aug 2015 13:34:26 +0000 (09:34 -0400)] 
Make the control/events test run TT_FORK

Some of them like to munge the global event mask, so it's important
to have that behavior isolated.

10 years agoRemove obsolete event_format_t
Nick Mathewson [Thu, 30 Jul 2015 14:51:55 +0000 (10:51 -0400)] 
Remove obsolete event_format_t

We used to use this when we had some controllers that would accept
long names and some that wouldn't.  But it's been obsolete for a
while, and it's time to strip it out of the code.

10 years agoRefactor our logic for sending events to controllers
Nick Mathewson [Thu, 30 Jul 2015 14:43:37 +0000 (10:43 -0400)] 
Refactor our logic for sending events to controllers

Previously we'd put these strings right on the controllers'
outbufs. But this could cause some trouble, for these reasons:

  1) Calling the network stack directly here would make a huge portion
     of our networking code (from which so much of the rest of Tor is
     reachable) reachable from everything that potentially generated
     controller events.

  2) Since _some_ events (EVENT_ERR for instance) would cause us to
     call connection_flush(), every control_event_* function would
     appear to be able to reach even _more_ of the network stack in
     our cllgraph.

  3) Every time we generated an event, we'd have to walk the whole
     connection list, which isn't exactly fast.

This is an attempt to break down the "blob" described in
http://archives.seul.org/tor/dev/Mar-2015/msg00197.html -- the set of
functions from which nearly all the other functions in Tor are
reachable.

Closes ticket 16695.

10 years agoUse tabs in src/or/include.am
Sebastian Hahn [Tue, 18 Aug 2015 02:30:02 +0000 (04:30 +0200)] 
Use tabs in src/or/include.am

10 years agoFix typo in double_digest_map type
Sebastian Hahn [Fri, 14 Aug 2015 00:12:35 +0000 (02:12 +0200)] 
Fix typo in double_digest_map type

10 years agoAdd unit tests for dirserv_set_routerstatus_testing
teor [Tue, 18 Aug 2015 11:50:15 +0000 (21:50 +1000)] 
Add unit tests for dirserv_set_routerstatus_testing

Test that TestingDirAuthVote{Exit,Guard,HSDir}[Strict] work on
routersets matching all routers, one router, and no routers.

TestingDirAuthVote{Exit,Guard,HSDir} set the corresponding flag
on routerstatuses which match the routerset, but leave other flags
unmodified.

TestingDirAuthVote{Exit,Guard,HSDir}Strict clear the corresponding flag
on routerstatuses which don't match the routerset.

10 years agoRefactor TestingDirAuthVote* into dirserv_set_routerstatus_testing
teor [Fri, 14 Aug 2015 02:09:00 +0000 (12:09 +1000)] 
Refactor TestingDirAuthVote* into dirserv_set_routerstatus_testing

Make it easier to unit test TestingDirAuthVote{Exit,Guard,HSDir}
by refactoring the code which sets flags based on them into a
new function dirserv_set_routerstatus_testing.

10 years agoNew TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags
teor [Wed, 6 May 2015 13:40:23 +0000 (23:40 +1000)] 
New TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags

"option to prevent guard,exit,hsdir flag assignment"

"A node will never receive the corresponding flag unless
that node is specified in the
TestingDirAuthVote{Exit,Guard,HSDir} list, regardless of
its uptime, bandwidth, exit policy, or DirPort".

Patch modified by "teor": VoteOnHidServDirectoriesV2
is now obsolete, so TestingDirAuthVoteHSDir always
votes on HSDirs.

Closes ticket 14882. Patch by "robgjansen".
Commit message and changes file by "teor"
with quotes from "robgjansen".

10 years agoFix TestingDirAuthVoteHSDir docs: HSDir flag needs DirPort
teor [Wed, 6 May 2015 13:37:38 +0000 (23:37 +1000)] 
Fix TestingDirAuthVoteHSDir docs: HSDir flag needs DirPort

Fix an error in the manual page and comments for
TestingDirAuthVoteHSDir, which suggested that a
HSDir required "ORPort connectivity". While this is true,
it is in no way unique to the HSDir flag. Of all the flags,
only HSDirs need a DirPort configured in order for the
authorities to assign that particular flag.

Fixed as part of 14882. Patch by "teor".
Bugfix on 0.2.6.3 (f9d57473e1ff on 10 January 2015).

10 years agoMerge remote-tracking branches 'public/decouple_lost_owner' and 'public/decouple_signals'
Nick Mathewson [Mon, 17 Aug 2015 20:24:45 +0000 (16:24 -0400)] 
Merge remote-tracking branches 'public/decouple_lost_owner' and 'public/decouple_signals'

10 years agoMerge remote-tracking branch 'yawning/feature16535'
Nick Mathewson [Mon, 17 Aug 2015 19:27:41 +0000 (15:27 -0400)] 
Merge remote-tracking branch 'yawning/feature16535'

10 years agoFixup: Force enable SSE2 before undefining ALIGN if SSE2 is disabled.
Yawning Angel [Mon, 17 Aug 2015 19:21:51 +0000 (19:21 +0000)] 
Fixup: Force enable SSE2 before undefining ALIGN if SSE2 is disabled.

This should fix the x86 build, since variables that require 16 byte
alignment will now actually be 16 byte aligned.

10 years agoMerge remote-tracking branch 'yawning/feature16535'
Nick Mathewson [Mon, 17 Aug 2015 18:53:46 +0000 (14:53 -0400)] 
Merge remote-tracking branch 'yawning/feature16535'

10 years agoEnable ed25519-donna's SSE2 code when possible for 32 bit x86.
Yawning Angel [Mon, 17 Aug 2015 18:41:41 +0000 (18:41 +0000)] 
Enable ed25519-donna's SSE2 code when possible for 32 bit x86.

This probably requires the user to manually set CFLAGS, but should
result in a net gain on 32 bit x86. Enabling SSE2 support would be
possible on x86_64, but will result in slower performance.

Implements feature #16535.

10 years agoMerge remote-tracking branch 'public/bug16741_026'
Nick Mathewson [Mon, 17 Aug 2015 18:40:27 +0000 (14:40 -0400)] 
Merge remote-tracking branch 'public/bug16741_026'

10 years agoLogs and debug info that I used for finding bug 16844
Roger Dingledine [Mon, 17 Aug 2015 18:34:50 +0000 (14:34 -0400)] 
Logs and debug info that I used for finding bug 16844

10 years agoMerge remote-tracking branch 'yawning/feature16533'
Nick Mathewson [Mon, 17 Aug 2015 18:16:20 +0000 (14:16 -0400)] 
Merge remote-tracking branch 'yawning/feature16533'

10 years agoMerge remote-tracking branch 'public/decouple_retry_directory'
Nick Mathewson [Mon, 17 Aug 2015 17:50:19 +0000 (13:50 -0400)] 
Merge remote-tracking branch 'public/decouple_retry_directory'

10 years agoBring the dimap tests up to 100%
Nick Mathewson [Mon, 17 Aug 2015 16:52:01 +0000 (12:52 -0400)] 
Bring the dimap tests up to 100%

10 years agoFix an assertion failure introduced in 20254907d7
Nick Mathewson [Mon, 17 Aug 2015 13:50:47 +0000 (09:50 -0400)] 
Fix an assertion failure introduced in 20254907d7

Fixes bug 16829; bug not in any released Tor.

10 years agoFix a stupid memory leak I introduced in 8afbc154. Bug not in any released Tor.
Nick Mathewson [Mon, 17 Aug 2015 13:42:35 +0000 (09:42 -0400)] 
Fix a stupid memory leak I introduced in 8afbc154. Bug not in any released Tor.

10 years agoRemove redundant tor_free() in command_process_create_cell().
Isis Lovecruft [Sun, 16 Aug 2015 00:49:03 +0000 (00:49 +0000)] 
Remove redundant tor_free()  in command_process_create_cell().

 * FIXES #16823: https://bugs.torproject.org/16823
   If an OP were to send a CREATE_FAST cell to an OR, and that
   CREATE_FAST cell had unparseable key material, then tor_free() would
   be called on the create cell twice.  This fix removes the second
   (conditional on the key material being bad) call to tor_free(), so
   that now the create cell is always freed once, regardless of the status of
   the key material.

   (This isn't actually a double-free bug, since tor_free() sets its
   input to NULL, and has no effect when called with input NULL.)

10 years agoMerge remote-tracking branch 'isis/fix/circuitlist-docstring-typo'
Nick Mathewson [Mon, 17 Aug 2015 13:25:23 +0000 (09:25 -0400)] 
Merge remote-tracking branch 'isis/fix/circuitlist-docstring-typo'

10 years agoMerge branch 'analyze_cg_more'
Nick Mathewson [Sun, 16 Aug 2015 02:41:03 +0000 (22:41 -0400)] 
Merge branch 'analyze_cg_more'

10 years agoHack up the scripts/maint/*callgraph* scripts to do more, better
Nick Mathewson [Tue, 11 Aug 2015 13:07:54 +0000 (09:07 -0400)] 
Hack up the scripts/maint/*callgraph* scripts to do more, better

These scripts are now a little more bulletproof, cache data a little
better, and generate more information.  Notably, they search for the
vectors or edges to cut that would lower the size of the largest
SCC.

10 years agoIncrease AccountingMax example value to 40 GB.
Nick Mathewson [Fri, 14 Aug 2015 13:53:38 +0000 (09:53 -0400)] 
Increase AccountingMax example value to 40 GB.

(Change not made in torrc.minimal.in; only in torrc.sample and
torrc.minimal.in-staging)

Closes ticket 16742.

10 years agoFix an overzealous compiler warning in the tests
Nick Mathewson [Fri, 14 Aug 2015 12:48:26 +0000 (08:48 -0400)] 
Fix an overzealous compiler warning in the tests

10 years agoMerge remote-tracking branch 'public/decouple_init_keys'
Nick Mathewson [Fri, 14 Aug 2015 12:40:51 +0000 (08:40 -0400)] 
Merge remote-tracking branch 'public/decouple_init_keys'

10 years agoIncrease unit test coverage on container.c
Nick Mathewson [Fri, 14 Aug 2015 02:14:19 +0000 (22:14 -0400)] 
Increase unit test coverage on container.c

10 years agoFix some types on container fns
Nick Mathewson [Fri, 14 Aug 2015 02:14:14 +0000 (22:14 -0400)] 
Fix some types on container fns

10 years agoDecouple routerlist_retry_directory_downloads() from the blob
Nick Mathewson [Thu, 13 Aug 2015 13:41:43 +0000 (09:41 -0400)] 
Decouple routerlist_retry_directory_downloads() from the blob

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.

10 years agoChange lost_owning_controller() to call activate_signal().
Nick Mathewson [Thu, 13 Aug 2015 13:13:21 +0000 (09:13 -0400)] 
Change lost_owning_controller() to call activate_signal().

Closes ticket 16788.

10 years agoAdd changes file for #16389
David Goulet [Thu, 13 Aug 2015 13:09:05 +0000 (15:09 +0200)] 
Add changes file for #16389

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoMerge branch 'bug16539'
Nick Mathewson [Wed, 12 Aug 2015 17:35:53 +0000 (13:35 -0400)] 
Merge branch 'bug16539'

10 years agoFix a windows compilation error
Nick Mathewson [Wed, 12 Aug 2015 17:16:08 +0000 (13:16 -0400)] 
Fix a windows compilation error

10 years agowhoops; add a stale changes file
Nick Mathewson [Wed, 12 Aug 2015 16:31:03 +0000 (12:31 -0400)] 
whoops; add a stale changes file

10 years agoFix a memory leak when adding an ri with expired ed certs
Nick Mathewson [Wed, 12 Aug 2015 16:27:45 +0000 (12:27 -0400)] 
Fix a memory leak when adding an ri with expired ed certs

Fixes bug 16539; bugfix on 0.2.7.2-alpha.

10 years agoUse ed25519-donna's batch verification support when applicable.
Yawning Angel [Wed, 12 Aug 2015 16:01:28 +0000 (16:01 +0000)] 
Use ed25519-donna's batch verification support when applicable.

The code was always in our Ed25519 wrappers, so enable it when using
the ed25519-donna backend, and deal with the mocking related
crypto_rand silliness.

Implements feature 16533.

10 years agoAdd crypto_rand_unmocked, which is crypto_rand without mocking.
Yawning Angel [Wed, 12 Aug 2015 15:57:05 +0000 (15:57 +0000)] 
Add crypto_rand_unmocked, which is crypto_rand without mocking.

There is odd issues with calling crypto_rand from our copy of
ed25519-donna, due to mocking that are not easily resolved.

10 years agoTry to decouple process_signal() from anything not event-driven
Nick Mathewson [Wed, 12 Aug 2015 15:25:00 +0000 (11:25 -0400)] 
Try to decouple process_signal() from anything not event-driven

This needs debugging; it currently breaks the stem tests.

10 years agoMerge branch 'ticket16762_squashed'
Nick Mathewson [Wed, 12 Aug 2015 15:02:27 +0000 (11:02 -0400)] 
Merge branch 'ticket16762_squashed'

10 years agoDecouple the backend for directory_all_unreachable to simplify our CFG
Nick Mathewson [Tue, 11 Aug 2015 13:58:30 +0000 (09:58 -0400)] 
Decouple the backend for directory_all_unreachable to simplify our CFG

See ticket 16762.

10 years agoSplit the client-only parts of init_keys() into a separate function
Nick Mathewson [Tue, 11 Aug 2015 14:35:10 +0000 (10:35 -0400)] 
Split the client-only parts of init_keys() into a separate function

This should simplify the callgraph a little more.

10 years agoMerge branch 'bug16389_027_03_squashed'
Nick Mathewson [Tue, 11 Aug 2015 13:34:55 +0000 (09:34 -0400)] 
Merge branch 'bug16389_027_03_squashed'

10 years agoExpire after 5 minutes rend cache failure entries
David Goulet [Wed, 5 Aug 2015 18:06:09 +0000 (14:06 -0400)] 
Expire after 5 minutes rend cache failure entries

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoAdd created timestamp to a rend cache failure entry
David Goulet [Wed, 5 Aug 2015 17:48:12 +0000 (13:48 -0400)] 
Add created timestamp to a rend cache failure entry

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoFix typo in comment about digest256map_t
David Goulet [Thu, 25 Jun 2015 20:19:25 +0000 (16:19 -0400)] 
Fix typo in comment about digest256map_t

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoUse an enum for INTRO_POINT_FAILURE_*
David Goulet [Thu, 25 Jun 2015 20:13:15 +0000 (16:13 -0400)] 
Use an enum for INTRO_POINT_FAILURE_*

Safer, wiser, stronger!

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoPurge client HS failure cache on NEWNYM
David Goulet [Thu, 25 Jun 2015 19:11:40 +0000 (15:11 -0400)] 
Purge client HS failure cache on NEWNYM

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoAdd rend failure cache
David Goulet [Thu, 18 Jun 2015 20:09:18 +0000 (16:09 -0400)] 
Add rend failure cache

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>
10 years agoFix windows compilation
Nick Mathewson [Tue, 11 Aug 2015 13:09:06 +0000 (09:09 -0400)] 
Fix windows compilation

10 years agoFix a 32-bit compilation warning
Nick Mathewson [Tue, 11 Aug 2015 13:07:27 +0000 (09:07 -0400)] 
Fix a 32-bit compilation warning

10 years agoMake HSDir depend on Running/Valid again.
Nick Mathewson [Tue, 11 Aug 2015 12:38:30 +0000 (08:38 -0400)] 
Make HSDir depend on Running/Valid again.

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.

10 years agoMerge remote-tracking branch 'public/feature16734'
Nick Mathewson [Mon, 10 Aug 2015 19:14:49 +0000 (15:14 -0400)] 
Merge remote-tracking branch 'public/feature16734'

10 years agoRemove a 9-function strongly connected component of tor's callgraph.
Nick Mathewson [Mon, 10 Aug 2015 18:27:23 +0000 (14:27 -0400)] 
Remove a 9-function strongly connected component of tor's callgraph.

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.

10 years agoUpdate callgraph code to find and output strongly connected components
Nick Mathewson [Mon, 10 Aug 2015 16:11:34 +0000 (12:11 -0400)] 
Update callgraph code to find and output strongly connected components

10 years agoMerge remote-tracking branch 'dgoulet/bug16274_027_02'
Nick Mathewson [Mon, 10 Aug 2015 15:49:04 +0000 (11:49 -0400)] 
Merge remote-tracking branch 'dgoulet/bug16274_027_02'

10 years agoCheck for EINTR correctly on windows
Nick Mathewson [Fri, 7 Aug 2015 13:12:33 +0000 (09:12 -0400)] 
Check for EINTR correctly on windows

(even though these are nonblocking calls and EINTR shouldn't be possible).

Also, log what error we're seing if drain_fn fails.

10 years agoMerge remote-tracking branch 'public/decouple-write'
Nick Mathewson [Thu, 6 Aug 2015 16:58:18 +0000 (12:58 -0400)] 
Merge remote-tracking branch 'public/decouple-write'

10 years agoMerge remote-tracking branch 'public/bug16286'
Nick Mathewson [Thu, 6 Aug 2015 16:44:13 +0000 (12:44 -0400)] 
Merge remote-tracking branch 'public/bug16286'

10 years agoFix misnamed parameter in or_circuit_new docstring.
Isis Lovecruft [Thu, 6 Aug 2015 06:05:07 +0000 (06:05 +0000)] 
Fix misnamed parameter in or_circuit_new docstring.

 * CHANGES `p_conn` to `p_chan` in `or_circuit_new()` docstring.

10 years agoadd dSYM files to gitignore (they are an osx thing)
Nick Mathewson [Thu, 6 Aug 2015 01:41:31 +0000 (21:41 -0400)] 
add dSYM files to gitignore (they are an osx thing)

10 years agoUpdate tor-fw-helper URL
Nick Mathewson [Wed, 5 Aug 2015 19:07:13 +0000 (15:07 -0400)] 
Update tor-fw-helper URL

10 years agoAdd a compat function to check how much disk space is free.
Nick Mathewson [Wed, 5 Aug 2015 18:01:49 +0000 (14:01 -0400)] 
Add a compat function to check how much disk space is free.

Closes ticket 16734.

10 years agoSet the open file limit to the current value before changing it
David Goulet [Tue, 2 Jun 2015 20:37:11 +0000 (16:37 -0400)] 
Set the open file limit to the current value before changing it

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>
10 years agoWrite a bunch more test for doc/WritingTests
Nick Mathewson [Wed, 5 Aug 2015 15:47:38 +0000 (11:47 -0400)] 
Write a bunch more test for doc/WritingTests

10 years agoAllow cov-display to take directories as arguments
Nick Mathewson [Wed, 5 Aug 2015 15:06:41 +0000 (11:06 -0400)] 
Allow cov-display to take directories as arguments