]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Tue, 28 Sep 2010 18:01:45 +0000 (14:01 -0400)]
Add a new option to enable/disable IOCP support
Nick Mathewson [Tue, 28 Sep 2010 04:46:01 +0000 (00:46 -0400)]
Merge branch 'microdesc_dl_v2'
Roger Dingledine [Mon, 27 Sep 2010 22:33:12 +0000 (18:33 -0400)]
Merge branch 'maint-0.2.2'
Roger Dingledine [Mon, 27 Sep 2010 22:32:09 +0000 (18:32 -0400)]
a dir-spec entry for refuseunknownexits
plus quiet a log line
Nick Mathewson [Tue, 21 Sep 2010 20:16:56 +0000 (16:16 -0400)]
Clean long-unlisted microdescs from the cache
Nick Mathewson [Tue, 11 May 2010 21:20:33 +0000 (17:20 -0400)]
Download microdescriptors if you're a cache
This commit adds some functions to see what microdescriptors we're missing,
and adds fetch-microdesc/store-microdesc logic to the directory code.
Nick Mathewson [Mon, 20 Sep 2010 18:18:17 +0000 (14:18 -0400)]
When updating routerdesc downloads, look specifically at the ns consensus
This will be needed when "get_live_consensus" potentially returns a
microdesc consensus.
Nick Mathewson [Thu, 16 Sep 2010 16:55:48 +0000 (12:55 -0400)]
Actually parse the m lines from a microdesc consensus
Nick Mathewson [Fri, 17 Sep 2010 02:12:03 +0000 (22:12 -0400)]
Code to download, parse, and store microdesc consensuses
Nick Mathewson [Mon, 20 Sep 2010 15:24:01 +0000 (11:24 -0400)]
New function to grab a directory connection fetching a resource
We need this to tell if a given consensus flavor is being downloaded
or not.
Nick Mathewson [Mon, 27 Sep 2010 21:52:20 +0000 (17:52 -0400)]
Merge remote branch 'origin/maint-0.2.2'
Conflicts:
src/or/config.c
Roger Dingledine [Mon, 27 Sep 2010 21:44:51 +0000 (17:44 -0400)]
the actual changelog entry this time
Roger Dingledine [Mon, 27 Sep 2010 21:44:00 +0000 (17:44 -0400)]
changelog entry for bug1751
Nick Mathewson [Mon, 27 Sep 2010 21:26:32 +0000 (17:26 -0400)]
Merge remote branch 'sebastian/bug1964' into maint-0.2.2
Sebastian Hahn [Mon, 27 Sep 2010 21:15:43 +0000 (23:15 +0200)]
Fix a bridge segfault
When we enabled support to change statistic options without restarting
Tor we forgot to initialize geoip_countries. Fix that.
Nick Mathewson [Mon, 27 Sep 2010 21:15:57 +0000 (17:15 -0400)]
Merge branch 'refuseunknown' into maint-0.2.2
Sebastian Hahn [Sat, 18 Sep 2010 12:48:21 +0000 (14:48 +0200)]
Add RefuseUnknownExits to the manpage
Nick Mathewson [Mon, 27 Sep 2010 21:08:03 +0000 (17:08 -0400)]
Merge branch 'bug1751_enabling' into maint-0.2.2
Nick Mathewson [Mon, 27 Sep 2010 21:07:22 +0000 (17:07 -0400)]
Change bug1751 enabling code based on comments from arma
Nick Mathewson [Mon, 27 Sep 2010 20:48:25 +0000 (16:48 -0400)]
Merge branch 'bufferevent5'
Nick Mathewson [Mon, 27 Sep 2010 20:07:14 +0000 (16:07 -0400)]
Make the bufferevent code use the renegotiation-reenabling hack
Nick Mathewson [Mon, 27 Sep 2010 19:42:08 +0000 (15:42 -0400)]
Merge remote branch 'origin/maint-0.2.2'
Nick Mathewson [Mon, 27 Sep 2010 19:39:40 +0000 (15:39 -0400)]
Merge remote branch 'public/bug1954' into maint-0.2.2
Nick Mathewson [Mon, 27 Sep 2010 17:24:19 +0000 (13:24 -0400)]
Detect Libevent version at configure time when using bufferevents
Nick Mathewson [Mon, 27 Sep 2010 17:02:11 +0000 (13:02 -0400)]
Always defer bufferevent_openssl callbacks to avoid reentrant invocations
Nick Mathewson [Mon, 27 Sep 2010 16:46:43 +0000 (12:46 -0400)]
Add a changes file for bufferevents
Nick Mathewson [Mon, 27 Sep 2010 16:45:56 +0000 (12:45 -0400)]
note that libevent does not have an an easy way to reset buckets atm
Nick Mathewson [Mon, 27 Sep 2010 16:41:41 +0000 (12:41 -0400)]
Fix whitespace in bufferevents branch
Nick Mathewson [Fri, 9 Apr 2010 22:45:08 +0000 (18:45 -0400)]
Document and/or fix stuff found by Sebastian in code review
Thanks to Sebastian for his code-review of the bufferevents patch series.x
Sebastian Hahn [Sun, 4 Apr 2010 01:34:42 +0000 (03:34 +0200)]
Some bufferevents related fixes and pointers for nickm
Nick Mathewson [Tue, 9 Mar 2010 04:24:24 +0000 (23:24 -0500)]
Fix build with automake 1.6
automake 1.6 doesn't like using a conditional += to add stuff to foo_LDADD.
Instead you need to conditionally define a variable, then non-conditionally
put that variable in foo_LDADD.
Nick Mathewson [Mon, 22 Feb 2010 18:59:34 +0000 (13:59 -0500)]
Convert bufferevents to use rate-limiting.
This requires the latest Git version of Libevent as of 24 March 2010.
In the future, we'll just say it requires Libevent 2.0.5-alpha or
later.
Since Libevent doesn't yet support hierarchical rate limit groups,
there isn't yet support for tracking relayed-bytes separately when
using the bufferevent system. If a future version does add support
for hierarchical buckets, we can add that back in.
Nick Mathewson [Tue, 2 Feb 2010 22:49:42 +0000 (17:49 -0500)]
Fix a couple of bufferevent incompatibilities that snuck in.
Nick Mathewson [Wed, 26 Aug 2009 19:33:19 +0000 (15:33 -0400)]
Get zlib compression working with bufferevents.
Nick Mathewson [Wed, 26 Aug 2009 15:55:36 +0000 (11:55 -0400)]
Implement SOCKS-client support for bufferevents
Nick Mathewson [Sun, 23 Aug 2009 15:39:34 +0000 (11:39 -0400)]
Documentation for a few bufferevent functions.
Nick Mathewson [Fri, 14 Aug 2009 18:34:16 +0000 (14:34 -0400)]
Get SSL connections and linked connections working with bufferevents.
Clients are now verified to work and build circuits correctly. There
are still a few warnings given here and there that I need to look into.
Nick Mathewson [Tue, 11 Aug 2009 23:14:50 +0000 (19:14 -0400)]
Make control connections use bufferevents
Nick Mathewson [Tue, 11 Aug 2009 21:45:01 +0000 (17:45 -0400)]
Fix crash/warning bug when we get an unexpected close.
This was possible if we have already decided to close a bufferevent
connection, but the other side decides to close it first.
Nick Mathewson [Tue, 11 Aug 2009 21:44:43 +0000 (17:44 -0400)]
Add a 0-pullup version of fetch_from_evbuffer_socks
Nick Mathewson [Tue, 11 Aug 2009 21:01:36 +0000 (17:01 -0400)]
Documentation for inspect_evbuffer
Nick Mathewson [Tue, 11 Aug 2009 20:56:09 +0000 (16:56 -0400)]
Add pullup-free version of fetch_from_evbuffer_http
Nick Mathewson [Tue, 11 Aug 2009 19:16:16 +0000 (15:16 -0400)]
Add support for linked connections with bufferevent_pair.
Also, set directory connections (linked and otherwise) to use bufferevents.
Also, stop using outbuf_flushlen anywhere except for OR connections.
Nick Mathewson [Tue, 11 Aug 2009 19:03:43 +0000 (15:03 -0400)]
Add bufferevent support for outgoing connections; exits are now supported.
Nick Mathewson [Sun, 9 Aug 2009 18:40:28 +0000 (11:40 -0700)]
Fix more remaining users of inbuf/outbuf to handle bufferevents instead.
Nick Mathewson [Sun, 9 Aug 2009 17:53:06 +0000 (10:53 -0700)]
Be a little more abstract about which connection type use bufferevents
Nick Mathewson [Sun, 9 Aug 2009 01:53:24 +0000 (18:53 -0700)]
Make a function to mark a connection and set hold_open_until_flushed.
Nick Mathewson [Sun, 9 Aug 2009 00:47:47 +0000 (17:47 -0700)]
Allow hold-open-until-flushed logic to work for bufferevents.
Nick Mathewson [Wed, 5 Aug 2009 16:59:11 +0000 (09:59 -0700)]
Move the "stop writing when the buffer is empty" logic to cnnection_finished_flushing
Nick Mathewson [Tue, 4 Aug 2009 16:44:30 +0000 (09:44 -0700)]
Add a fetch_from_evbuffer_http
Nick Mathewson [Tue, 4 Aug 2009 16:30:53 +0000 (09:30 -0700)]
Have edge connections use fetch_from_evbuffer_socks when appropriate.
Nick Mathewson [Tue, 4 Aug 2009 16:29:30 +0000 (09:29 -0700)]
Basic bufferevent callbacks
These are based strongly on connection_handle_read and
connection_handle_write, but hopefully without so much mixture of IO
logic and Tor logic.
Nick Mathewson [Fri, 31 Jul 2009 21:03:35 +0000 (17:03 -0400)]
Refactor SOCKS parsing code to handle evbuffers.
Now all of the logic is in a parse_socks() function that gets data
from a buf_t or evbuffer-specific wrapper.
Nick Mathewson [Fri, 31 Jul 2009 18:51:04 +0000 (14:51 -0400)]
Clone fetch_var_cell_from_buf() for evbuffers.
Nick Mathewson [Fri, 31 Jul 2009 17:44:43 +0000 (13:44 -0400)]
Add a new connection_fetch_from_buf_line() that can handle bufferevents
Nick Mathewson [Fri, 31 Jul 2009 16:01:57 +0000 (12:01 -0400)]
New bufferevent-related check in assert_connection_ok().
{Make sure that if we have a bufferevent on a connection, we do not have the
other libevent/buffering-related fields set.}
Nick Mathewson [Fri, 31 Jul 2009 15:59:39 +0000 (11:59 -0400)]
Add bufferevent versions of connection_write/fetch_to/from_buf.
Nick Mathewson [Fri, 31 Jul 2009 15:39:31 +0000 (11:39 -0400)]
Refactor users of buf_datalen to bufferevent-friendly version.
Nick Mathewson [Fri, 31 Jul 2009 15:11:45 +0000 (11:11 -0400)]
Teach read_event/write_event manipulators about bufferevents.
Add an --enable-bufferevents config switch.
Nick Mathewson [Fri, 31 Jul 2009 18:55:17 +0000 (14:55 -0400)]
Remove never-actually-finished code to use readv and writev for IO.
We'll get this feature for free with bufferevents, so there's no good reason
to clone it in Tor.
Nick Mathewson [Mon, 27 Sep 2010 16:26:23 +0000 (12:26 -0400)]
Merge remote branch 'origin/maint-0.2.2'
Nick Mathewson [Mon, 27 Sep 2010 16:25:32 +0000 (12:25 -0400)]
Merge branch 'bug1805' into maint-0.2.2
Nick Mathewson [Mon, 27 Sep 2010 16:23:49 +0000 (12:23 -0400)]
Clean up some bug1805 comments based on arma's feedback
Nick Mathewson [Mon, 27 Sep 2010 16:17:41 +0000 (12:17 -0400)]
Merge remote branch 'mikeperry/bug1952-merge' into maint-0.2.2
Mike Perry [Sat, 25 Sep 2010 14:03:06 +0000 (07:03 -0700)]
Add changelog for bug 1952.
Mike Perry [Sat, 25 Sep 2010 13:56:01 +0000 (06:56 -0700)]
Update dir-spec.txt with new weight constraints.
Mike Perry [Sat, 25 Sep 2010 13:53:30 +0000 (06:53 -0700)]
Implement new Wxx constraints.
Cases 1 and 3b are provably correct. Case 2b has a fallback to first try to
maximize entropy.
Nick Mathewson [Mon, 27 Sep 2010 15:20:12 +0000 (11:20 -0400)]
Use autoreconf, not autoconf&&automake&&etc in autogen.sh
The autoreconf tool deals much better with detecting which tools to
use on your particular platform, handling cases where your
install-sh script gets stable, and lots of other little tricky
issues.
We still fall back to autoconf&&automake&&etc in the case where
"`which autoreconf 2>/dev/null`" says something we can't run.
This is the first change of the 0.2.3.x series.
Nick Mathewson [Fri, 24 Sep 2010 19:15:07 +0000 (15:15 -0400)]
Bump the Tor version in master to 0.2.3.0-alpha-dev
0.2.2.x development will continue in branch maint-0.2.2.
master is now out of feature freeze.
Let's not go crazy right away. :)
Nick Mathewson [Fri, 24 Sep 2010 18:16:55 +0000 (14:16 -0400)]
Consistency issues in load_windows_system_library patch. Thanks Sebastian
Nick Mathewson [Fri, 24 Sep 2010 17:43:55 +0000 (13:43 -0400)]
Merge remote branch 'sebastian/continuation'
Sebastian Hahn [Fri, 24 Sep 2010 11:32:27 +0000 (13:32 +0200)]
Note that the torrc format doesn't need nl at end
Nick Mathewson [Fri, 24 Sep 2010 03:16:25 +0000 (23:16 -0400)]
Merge branch 'bug1511'
Nick Mathewson [Fri, 24 Sep 2010 02:58:04 +0000 (22:58 -0400)]
Tweak continuation-and-comment logic
I think there was a read-off-the-end-of-the-buffer bug that I fixed.
At least I added some good comments, I hope.
Sebastian Hahn [Thu, 23 Sep 2010 20:39:58 +0000 (22:39 +0200)]
Add new torrc line continuation unit tests
We want to make sure that we don't break old torrc files that might have
used something like this made-up example:
ContactInfo UberUser <uber@user.com> # /// Fake email! \\\
Log info file /home/nick.mathewson/projects/tor-info.log
And we also want to support the following style of writing your torrc:
ExcludeNodes \
# Node1337 is run by the Bavarian Illuminati
Node1337, \
# The operator of Node99 looked at me funny
Node99
The code already handles both cases, but the unit test should help prove
it.
Nick Mathewson [Wed, 22 Sep 2010 05:52:57 +0000 (01:52 -0400)]
Rename has_completed_circuit to can_complete_circuit
Also redocument it. Related to #1362.
Nick Mathewson [Wed, 22 Sep 2010 05:45:57 +0000 (01:45 -0400)]
Merge remote branch 'arma/bug1362'
Nick Mathewson [Wed, 22 Sep 2010 05:30:23 +0000 (01:30 -0400)]
Changes to bug1959_part1 on review from arma.
Significant one: we want to say "not enough entry nodes descriptors, so we
can't build circuits" only when we have 0 descriptors.
Nick Mathewson [Tue, 21 Sep 2010 19:17:40 +0000 (15:17 -0400)]
Make our min-info check also check for entry node presence
Part of a fix for bug1959
Nick Mathewson [Tue, 21 Sep 2010 18:59:43 +0000 (14:59 -0400)]
Even more accurate handling for shifting accounting intervals
Roger correctly pointed out that my code was broken for accounting
periods that shifted forwards, since
start_of_accounting_period_containing(interval_start_time) would not
be equal to interval_start_time, but potentially much earlier.
Nick Mathewson [Tue, 21 Sep 2010 17:45:36 +0000 (13:45 -0400)]
Use load_windows_system_library in place of LoadLibrary
Nick Mathewson [Tue, 21 Sep 2010 17:07:11 +0000 (13:07 -0400)]
New function to load windows system libraries
This function uses GetSystemDirectory() to make sure we load the version
of the library from c:\windows\system32 (or local equivalent) rather than
whatever version lives in the cwd.
Nick Mathewson [Tue, 21 Sep 2010 18:29:59 +0000 (14:29 -0400)]
Merge branch 'bug1789'
Nick Mathewson [Tue, 21 Sep 2010 18:02:04 +0000 (14:02 -0400)]
Bug1789 cleanups suggested by arma
The significant one is that we look at RelayBandwidthRate if it is set.
Roger Dingledine [Tue, 21 Sep 2010 06:16:43 +0000 (02:16 -0400)]
log when we finish a circuit after being offline
John Brooks [Tue, 21 Sep 2010 04:18:43 +0000 (22:18 -0600)]
Correct default for RendPostPeriod in docs
Nick Mathewson [Tue, 21 Sep 2010 05:03:29 +0000 (01:03 -0400)]
First cut of code to enable RefuseUnknownExits
The RefuseUnknownExits config option is now a tristate, with "1"
meaning "enable it no matter what the consensus says", "0" meaning
"disable it no matter what the consensus says", and "auto" meaning "do
what the consensus says". If the consensus is silent, we enable
RefuseUnknownExits.
This patch also changes the dirserv logic so that refuseunknownexits
won't make us cache unless we're an exit.
Nick Mathewson [Tue, 21 Sep 2010 04:07:45 +0000 (00:07 -0400)]
Merge branch 'bug1956'
Roger Dingledine [Tue, 21 Sep 2010 01:32:18 +0000 (21:32 -0400)]
changelog entry for bug 1943
Roger Dingledine [Mon, 20 Sep 2010 22:40:32 +0000 (18:40 -0400)]
A start at a patch for bug 1943 (alignment issues)
Nick Mathewson [Mon, 20 Sep 2010 17:33:57 +0000 (13:33 -0400)]
Count unknown authorities as unknown only once, not once per signature.
Do not double-report signatures from unrecognized authorities both as
"from unknown authority" and "not present". Fixes bug 1956, bugfix on
0.2.2.16-alpha.
Sebastian Hahn [Sun, 19 Sep 2010 11:09:47 +0000 (13:09 +0200)]
Attempt to fix compilation on Windows
Our attempt to make compilation work on old versions of Windows
again while keeping wince compatibility broke the build for Win2k+.
helix reports this patch fixes the issue for WinXP. Bugfix on
0.2.2.15-alpha; related to bug 1797.
Roger Dingledine [Fri, 17 Sep 2010 09:07:59 +0000 (05:07 -0400)]
bump to 0.2.2.16-alpha-dev
Roger Dingledine [Fri, 17 Sep 2010 06:06:34 +0000 (02:06 -0400)]
best tor ever!
Nick Mathewson [Thu, 16 Sep 2010 19:43:00 +0000 (15:43 -0400)]
I hear we are close to a release. Clean up the whitespace.
Roger Dingledine [Thu, 16 Sep 2010 17:45:54 +0000 (13:45 -0400)]
fold in the recent changes files
Nick Mathewson [Thu, 16 Sep 2010 14:54:09 +0000 (10:54 -0400)]
Change 'bugfix on' line for changes/bug1921.
Karsten says: "the ChangeLog should say it's a bugfix on
0.2.2.15-alpha, because enabling stats while Tor is running (which
leads to this false log message) is only possible since then."
Sounds right enough to me. Tell me if I'm wrong.
Nick Mathewson [Thu, 16 Sep 2010 14:52:43 +0000 (10:52 -0400)]
Merge remote branch 'sebastian/bug1921'
Roger Dingledine [Thu, 16 Sep 2010 04:17:39 +0000 (00:17 -0400)]
perconnbwrate and perconnbwburst consensus params
Sebastian Hahn [Wed, 15 Sep 2010 23:13:51 +0000 (01:13 +0200)]
Demote a warn when enabling CellStatistics
When the CellStatistics option is off, we don't store cell insertion
times. Doing so would also not be very smart, because there seem to
still be some performance issues with this type of statistics. Nothing
harmful happens when we don't have insertion times, so we don't need to
alarm the user.