]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
13 years agoadd a blurb for 0.2.3.16-alpha tor-0.2.3.16-alpha
Roger Dingledine [Tue, 5 Jun 2012 22:28:52 +0000 (18:28 -0400)] 
add a blurb for 0.2.3.16-alpha

13 years agotoday is the day for 0.2.3.16-alpha
Roger Dingledine [Tue, 5 Jun 2012 16:14:57 +0000 (12:14 -0400)] 
today is the day for 0.2.3.16-alpha

13 years agostart folding in the changes files
Roger Dingledine [Tue, 5 Jun 2012 16:05:31 +0000 (12:05 -0400)] 
start folding in the changes files

13 years agoMerge branch 'bug5603'
Nick Mathewson [Tue, 5 Jun 2012 15:47:34 +0000 (11:47 -0400)] 
Merge branch 'bug5603'

13 years agoChanges file for bug 5603
Nick Mathewson [Tue, 5 Jun 2012 15:47:16 +0000 (11:47 -0400)] 
Changes file for bug 5603

13 years agoMinor changes to bug5603
Nick Mathewson [Tue, 5 Jun 2012 15:39:31 +0000 (11:39 -0400)] 
Minor changes to bug5603

  * Minor stylistic changes to comments and doxygen
  * Use strcmp_opt; it already exists.
  * Tighten bridge_has_digest implementation a little.

13 years agoMerge remote-tracking branch 'public/getfilesize_64'
Nick Mathewson [Tue, 5 Jun 2012 15:10:42 +0000 (11:10 -0400)] 
Merge remote-tracking branch 'public/getfilesize_64'

Conflicts:
src/common/compat.c

The getfilesize change conflicted with the removal of file_handle
from the windows tor_mmap_t.

13 years agoFix some mingw build warnings
Nick Mathewson [Tue, 5 Jun 2012 15:06:26 +0000 (11:06 -0400)] 
Fix some mingw build warnings

These include:
   - Having a weird in_addr that can't be initialized with {0}
   - Needing INVALID_HANDLE_VALUE instead of -1 for file handles.
   - Having a weird dependent definition for struct stat.
   - pid is signed, not unsigned.

13 years agoRevert "Disable (Cell,DirReq,Entry,ExitPort)Statistics on bridges"
Nick Mathewson [Tue, 5 Jun 2012 14:47:05 +0000 (10:47 -0400)] 
Revert "Disable (Cell,DirReq,Entry,ExitPort)Statistics on bridges"

This reverts commit 981e896dd2eaf69798bb503c271306ee779dd6d2.

Apparently Karsten still needs DirReqStatistics for bridges; see

13 years agoDowngrade tor_assert(0) to tor_fragile_assert() in windows stub create_unix_sockaddr
Nick Mathewson [Tue, 5 Jun 2012 14:36:34 +0000 (10:36 -0400)] 
Downgrade tor_assert(0) to tor_fragile_assert() in windows stub create_unix_sockaddr

13 years agoMerge remote-tracking branch 'public/bug3894'
Nick Mathewson [Tue, 5 Jun 2012 14:31:00 +0000 (10:31 -0400)] 
Merge remote-tracking branch 'public/bug3894'

13 years agoMerge remote-tracking branch 'public/format_doubles'
Nick Mathewson [Tue, 5 Jun 2012 14:30:50 +0000 (10:30 -0400)] 
Merge remote-tracking branch 'public/format_doubles'

Conflicts:
src/or/geoip.c

13 years agoDisable (Cell,DirReq,Entry,ExitPort)Statistics on bridges
Nick Mathewson [Tue, 5 Jun 2012 14:25:50 +0000 (10:25 -0400)] 
Disable (Cell,DirReq,Entry,ExitPort)Statistics on bridges

These stats are currently discarded, but we might as well
hard-disable them on bridges, to be clean.

Fix for bug 5824; bugfix on 0.2.1.17-rc.

Patch originally by Karsten Loesing.

13 years agoMerge remote-tracking branch 'public/bug4657'
Nick Mathewson [Tue, 5 Jun 2012 14:20:44 +0000 (10:20 -0400)] 
Merge remote-tracking branch 'public/bug4657'

Conflicts:
src/or/router.c

13 years agoMerge remote-tracking branch 'public/bug4710'
Nick Mathewson [Tue, 5 Jun 2012 14:16:28 +0000 (10:16 -0400)] 
Merge remote-tracking branch 'public/bug4710'

13 years agoFix "make check-spaces" issues
Nick Mathewson [Tue, 5 Jun 2012 04:49:18 +0000 (00:49 -0400)] 
Fix "make check-spaces" issues

13 years agoResolve about 24 DOCDOCs
Nick Mathewson [Tue, 5 Jun 2012 04:17:54 +0000 (00:17 -0400)] 
Resolve about 24 DOCDOCs

13 years agoMissing copyright/license statement for procmon.c
Nick Mathewson [Tue, 5 Jun 2012 01:02:13 +0000 (21:02 -0400)] 
Missing copyright/license statement for procmon.c

13 years agoUpdate copyright dates to 2012; add a few missing copyright statements
Nick Mathewson [Tue, 5 Jun 2012 00:58:17 +0000 (20:58 -0400)] 
Update copyright dates to 2012; add a few missing copyright statements

13 years agoAdd about 60 more DOCDOC comments to 0.2.3
Nick Mathewson [Mon, 4 Jun 2012 23:51:00 +0000 (19:51 -0400)] 
Add about 60 more DOCDOC comments to 0.2.3

Also, try to resolve some doxygen issues.  First, define a magic
"This is doxygen!" macro so that we take the correct branch in
various #if/#else/#endifs in order to get the right documentation.
Second, add in a few grouping @{ and @} entries in order to get some
variables and fields to get grouped together.

13 years agoUpdate the "redox" doxygen/DOCDOC postprocessing script
Nick Mathewson [Mon, 4 Jun 2012 23:56:44 +0000 (19:56 -0400)] 
Update the "redox" doxygen/DOCDOC postprocessing script

Somewhere along the line, doxygen and tor changed their behavior a
little. The script is still a dreadful kludge, but now at least it
sorta works again.

13 years agoResolve some markup complaints from doxygen
Nick Mathewson [Mon, 4 Jun 2012 23:56:16 +0000 (19:56 -0400)] 
Resolve some markup complaints from doxygen

13 years agoResolve all currently pending DOCDOC items in master
Nick Mathewson [Mon, 4 Jun 2012 22:50:13 +0000 (18:50 -0400)] 
Resolve all currently pending DOCDOC items in master

13 years agoMerge origin/maint-0.2.2 for 6007_strict
Nick Mathewson [Mon, 4 Jun 2012 15:47:36 +0000 (11:47 -0400)] 
Merge origin/maint-0.2.2 for 6007_strict

This code shouldn't have any effect in 0.2.3, since we already accept
(and handle) data received while we are expecting a renegotiation.
(That's because the 0.2.3.x handshake _does_ have data there instead of
the renegotiation.)

I'm leaving it in anyway, since if it breaks anything, we'll want it
broken in master too so we can find out about it.  I added an XXX023
comment so that we can come back later and fix that.

13 years agoMerge remote-tracking branch 'public/bug6007_strict_squashed' into maint-0.2.2
Nick Mathewson [Mon, 4 Jun 2012 15:40:52 +0000 (11:40 -0400)] 
Merge remote-tracking branch 'public/bug6007_strict_squashed' into maint-0.2.2

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Mon, 4 Jun 2012 15:36:33 +0000 (11:36 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoMerge remote-tracking branch 'public/bug6033' into maint-0.2.2
Nick Mathewson [Mon, 4 Jun 2012 15:33:27 +0000 (11:33 -0400)] 
Merge remote-tracking branch 'public/bug6033' into maint-0.2.2

13 years agoKill non-open OR connections with any data on their inbufs.
Nick Mathewson [Thu, 31 May 2012 15:19:35 +0000 (11:19 -0400)] 
Kill non-open OR connections with any data on their inbufs.

This fixes a DoS issue where a client could send so much data in 5
minutes that they exhausted the server's RAM.  Fix for bug 5934 and
6007.  Bugfix on 0.2.0.20-rc, which enabled the v2 handshake.

13 years agoFix build warning on Lenny about strtok_r unit test
Nick Mathewson [Mon, 4 Jun 2012 15:07:52 +0000 (11:07 -0400)] 
Fix build warning on Lenny about strtok_r unit test

This fixes a warning in efb8a09f, where Debain Lenny's GCC doesn't get
that
    for (i=0; i<3; ++i) {
      const char *p;
      switch(i) {
       case 0:
         p="X"; break;
       case 1:
         p="Y"; break;
       case 2:
         p="Z"; break;
      }
      printf("%s\n", p);
    }
will never try to print an uninitialezed value.

Found by buildbots.  Bug in no released versions of Tor.

13 years agoclarify that LongLivedPorts is for hidden services too
Roger Dingledine [Mon, 4 Jun 2012 01:07:34 +0000 (21:07 -0400)] 
clarify that LongLivedPorts is for hidden services too

13 years agoWork around a bug in OpenSSL 1.0.1's TLS 1.1 and TLS 1.2 support
Nick Mathewson [Sun, 3 Jun 2012 00:05:32 +0000 (20:05 -0400)] 
Work around a bug in OpenSSL 1.0.1's TLS 1.1 and TLS 1.2 support

It appears that when OpenSSL negotiates a 1.1 or 1.2 connection, and it
decides to renegotiate, the client will send a record with version "1.0"
rather than with the current TLS version.  This would cause the
connection to fail whenever both sides had OpenSSL 1.0.1, and the v2 Tor
handshake was in use.

As a workaround, disable TLS 1.1 and TLS 1.2.  When a later version of
OpenSSL is released, we can make this conditional on running a fixed
version of OpenSSL.

Alternatively, we could disable TLS 1.1 and TLS 1.2 only on the client
side.  But doing it this way for now means that we not only fix TLS with
patched clients; we also fix TLS when the server has this patch and the
client does not.  That could be important to keep the network running
well.

Fixes bug 6033.

13 years agoImprove conflict resolution when adding new bridges.
George Kadianakis [Sat, 2 Jun 2012 21:21:49 +0000 (00:21 +0300)] 
Improve conflict resolution when adding new bridges.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 31 May 2012 21:00:37 +0000 (17:00 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoadd changes file for bug 5283
Roger Dingledine [Wed, 16 May 2012 00:50:29 +0000 (20:50 -0400)] 
add changes file for bug 5283

I called it a bugfix on 0.2.0.10-alpha, since git commit e5885deab is
where we introduced anonymized begin_dir connections.

13 years agoMake all begindir or one-hop circuits internal
Nick Mathewson [Tue, 15 May 2012 13:41:45 +0000 (09:41 -0400)] 
Make all begindir or one-hop circuits internal

This solves bug 5283, where client traffic could get sent over the
same circuit as an anonymized connection to a directory, even if
that circuit used an exit node unsuitable for clients.  By marking
the directory connection as needs_internal, we ensure that the
(non-internal!) client-traffic connection won't be sent over the
same circuit.

13 years agoMerge remote-tracking branch 'public/bug5089'
Nick Mathewson [Thu, 31 May 2012 20:21:54 +0000 (16:21 -0400)] 
Merge remote-tracking branch 'public/bug5089'

Conflicts:
src/test/test_util.c

Merge the unit tests; I added some when I did this branch against
0.2.2, and then the test format changed and master added more tests.

13 years agoA few more get_parent_directory tests.
Nick Mathewson [Thu, 31 May 2012 19:12:45 +0000 (15:12 -0400)] 
A few more get_parent_directory tests.

13 years agoMerge remote-tracking branch 'public/bug5374'
Nick Mathewson [Thu, 31 May 2012 19:07:19 +0000 (15:07 -0400)] 
Merge remote-tracking branch 'public/bug5374'

13 years agoMerge remote-tracking branch 'linus/bug4873_ln'
Nick Mathewson [Thu, 31 May 2012 18:37:29 +0000 (14:37 -0400)] 
Merge remote-tracking branch 'linus/bug4873_ln'

13 years agoMerge remote-tracking branch 'public/bug5541_v2'
Nick Mathewson [Thu, 31 May 2012 16:40:30 +0000 (12:40 -0400)] 
Merge remote-tracking branch 'public/bug5541_v2'

13 years agoMerge remote-tracking branch 'public/close_file_mapping'
Nick Mathewson [Thu, 31 May 2012 16:38:11 +0000 (12:38 -0400)] 
Merge remote-tracking branch 'public/close_file_mapping'

Conflicts:
src/common/compat.h

Conflict was between replacement of MS_WINDOWS with _WIN32 in
master, and with removal of file_handle from tor_mmap_t struct in
close_file_mapping branch (for bug 5951 fix).

13 years agoreindent CreateFile arguments.
Nick Mathewson [Thu, 31 May 2012 16:36:54 +0000 (12:36 -0400)] 
reindent CreateFile arguments.

13 years agoMerge remote-tracking branch 'linus/bug5355_ln'
Nick Mathewson [Thu, 31 May 2012 16:33:16 +0000 (12:33 -0400)] 
Merge remote-tracking branch 'linus/bug5355_ln'

13 years agoMerge remote-tracking branch 'public/bug1938'
Nick Mathewson [Thu, 31 May 2012 16:24:02 +0000 (12:24 -0400)] 
Merge remote-tracking branch 'public/bug1938'

13 years agoMerge remote-tracking branch 'public/bug2954_more'
Nick Mathewson [Thu, 31 May 2012 16:22:02 +0000 (12:22 -0400)] 
Merge remote-tracking branch 'public/bug2954_more'

13 years agoRemove unexpected "unexpectedly".
Linus Nordberg [Thu, 31 May 2012 11:08:57 +0000 (13:08 +0200)] 
Remove unexpected "unexpectedly".

13 years agoRemove spurioius return in one out of four if-else clauses.
Linus Nordberg [Thu, 31 May 2012 11:05:24 +0000 (13:05 +0200)] 
Remove spurioius return in one out of four if-else clauses.

We do return right after the if-else.  This return (with its confusing
comments) comes from before 6b7c3b42 but doesn't make sense now.

13 years agoMerge remote-tracking branch 'public/bug3196'
Nick Mathewson [Thu, 31 May 2012 05:02:27 +0000 (01:02 -0400)] 
Merge remote-tracking branch 'public/bug3196'

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 31 May 2012 04:07:52 +0000 (00:07 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

(For bug 5969 fix)

13 years agoFix more clang format-nonliteral warnings (bug 5969)
Nick Mathewson [Wed, 30 May 2012 23:57:02 +0000 (19:57 -0400)] 
Fix more clang format-nonliteral warnings (bug 5969)

13 years agoMerge branch 'bug5604'
Nick Mathewson [Wed, 30 May 2012 21:00:36 +0000 (17:00 -0400)] 
Merge branch 'bug5604'

13 years agoAdd a little documentation for the bug5604 fix
Nick Mathewson [Wed, 30 May 2012 20:53:31 +0000 (16:53 -0400)] 
Add a little documentation for the bug5604 fix

13 years agoMerge remote-tracking branch 'public/bug5954'
Nick Mathewson [Wed, 30 May 2012 20:38:20 +0000 (16:38 -0400)] 
Merge remote-tracking branch 'public/bug5954'

13 years agoMerge remote-tracking branch 'linus/bug4369'
Nick Mathewson [Wed, 30 May 2012 17:05:15 +0000 (13:05 -0400)] 
Merge remote-tracking branch 'linus/bug4369'

13 years agoAdd __attribute__(format)s for our varargs printf/scanf wrappers
Nick Mathewson [Wed, 30 May 2012 16:14:38 +0000 (12:14 -0400)] 
Add __attribute__(format)s for our varargs printf/scanf wrappers

It turns out that if you set the third argument of
__attribute__(format) to 0, GCC and Clang will check the format
argument without expecting to find variadic arguments.  This is the
correct behavior for vsnprintf, vasprintf, and vscanf.

I'm hoping this will fix bug 5969 (a clang warning) by telling clang that
the format argument to tor_vasprintf is indeed a format string.

13 years agoFix clang 3.1 compile warning in crypto.c
Sebastian Hahn [Sun, 27 May 2012 16:28:15 +0000 (18:28 +0200)] 
Fix clang 3.1 compile warning in crypto.c

(Tweaked by nickm)

13 years agoFix a typo in changes/bug5916
Nick Mathewson [Wed, 30 May 2012 15:18:49 +0000 (11:18 -0400)] 
Fix a typo in changes/bug5916

13 years agoMerge remote-tracking branch 'public/bug5916'
Nick Mathewson [Wed, 30 May 2012 15:14:41 +0000 (11:14 -0400)] 
Merge remote-tracking branch 'public/bug5916'

13 years agoDon't stomp on errno.
Linus Nordberg [Tue, 29 May 2012 13:38:03 +0000 (15:38 +0200)] 
Don't stomp on errno.

13 years agoFix minor typo in warning printout.
Linus Nordberg [Tue, 29 May 2012 13:03:22 +0000 (15:03 +0200)] 
Fix minor typo in warning printout.

13 years agoDelay getsockname() call until after connect() is done
Nick Mathewson [Thu, 24 May 2012 20:57:36 +0000 (16:57 -0400)] 
Delay getsockname() call until after connect() is done

On Windows, getsockname() on a nonblocking apparently won't work
until the connection is done connecting.  On XP, it seems to fail by
reporting success and declaring that your address is INADDR_ANY.  On the
Win8 preview, though, it fails more loudly and says WSAEINVAL.

Fix for bug 5374; bugfix on 0.1.1.14-alpha.

13 years agoHave get_parent_directory() handle "/foo" and "/" correctly.
Nick Mathewson [Thu, 24 May 2012 16:56:31 +0000 (12:56 -0400)] 
Have get_parent_directory() handle "/foo" and "/" correctly.

The parent of "/foo" is "/"; and "/" is its own parent.

This would cause Tor to fail if you tried to have a PF_UNIX control
socket in the root directory.  That would be a stupid thing to do
for other reasons, but there's no reason to fail like _this_.

Bug found by Esteban Manchado Velázquez. Fix for bug 5089; bugfix on
Tor 0.2.2.26-beta.  Unit test included.

13 years agoWarn and ignore the MyFamily setting if BridgeRelay is also set
Nick Mathewson [Thu, 24 May 2012 16:39:26 +0000 (12:39 -0400)] 
Warn and ignore the MyFamily setting if BridgeRelay is also set

Roger explains at
  http://archives.seul.org/tor/talk/Nov-2011/msg00209.html :

  "If you list your bridge as part of your family in the relay
  descriptor, then everybody can learn your bridge fingerprint, and
  they can look up your bridge's descriptor (and thus location) at
  the bridge directory authority."

Now, we can't stop relays from listing bridges, but we can warn when
we notice a bridge listing anybody, which might help some.

This fixes bug 4657; it's a fix on 0.2.0.3-alpha, where bridges were
first introduced.

13 years agoChange an assertion into a warning in connection_or_handle_event_cb()
Nick Mathewson [Thu, 24 May 2012 15:14:28 +0000 (11:14 -0400)] 
Change an assertion into a warning in connection_or_handle_event_cb()

Possibly addresses bug 4873, though IMO that's likely not a real
bug: it seems likely to have been an ssl version mismatch.

13 years agoAbort writing cached-microdescs if a failed write has occurred.
Nick Mathewson [Thu, 24 May 2012 15:07:01 +0000 (11:07 -0400)] 
Abort writing cached-microdescs if a failed write has occurred.

Bug 2954; fix on 0.2.2.6-alpha.

13 years agoNew "GETINFO dormant" to report whether Tor has gone idle
Nick Mathewson [Thu, 24 May 2012 14:42:55 +0000 (10:42 -0400)] 
New "GETINFO dormant" to report whether Tor has gone idle

Torbutton needs this; see bug 5954 and 4718.

13 years agoUse GetFileSize correctly on win32
Nick Mathewson [Thu, 24 May 2012 14:19:41 +0000 (10:19 -0400)] 
Use GetFileSize correctly on win32

(Use its second parameter to find the high 32 bits of the file size;
check its return value for error conditions.)

13 years agoforward-port the 0.2.2.36 changelog
Roger Dingledine [Thu, 24 May 2012 08:12:29 +0000 (04:12 -0400)] 
forward-port the 0.2.2.36 changelog

13 years agoClose the windows file handle after CreateFileMapping; it isn't needed
Nick Mathewson [Wed, 23 May 2012 16:39:05 +0000 (12:39 -0400)] 
Close the windows file handle after CreateFileMapping; it isn't needed

I did the changes file; the rest came pseudonymously

13 years agoFix the unittest breakage introduced by a8a862c.
George Kadianakis [Fri, 18 May 2012 17:52:24 +0000 (20:52 +0300)] 
Fix the unittest breakage introduced by a8a862c.

13 years agoMerge remote-tracking branch 'asn/bug5602'
Nick Mathewson [Fri, 18 May 2012 16:36:04 +0000 (12:36 -0400)] 
Merge remote-tracking branch 'asn/bug5602'

13 years agoFix a hard-to-trigger memory leak in launch_resolve
Nick Mathewson [Fri, 18 May 2012 16:21:46 +0000 (12:21 -0400)] 
Fix a hard-to-trigger memory leak in launch_resolve

To hit this leak, you need to be a relay that gets a RESOLVE request
or an exit node getting a BEGIN or RESOLVE request.  You must either
have unconfigured (and unconfigurable) nameservers, or you must have
somehow set DisableNetwork after a network request arrived but
before you managed to process it.

So, I doubt this is reached often.  Still, a leak's a leak.  Fix for
bug 5916; bugfix on 0.2.3.9-alpha and 0.1.2.1-alpha.

13 years agoMerge remote-tracking branch 'asn/bug5646'
Nick Mathewson [Fri, 18 May 2012 16:10:40 +0000 (12:10 -0400)] 
Merge remote-tracking branch 'asn/bug5646'

13 years agoExtract data from DESTROY cell _after_ protocol violation checks.
George Kadianakis [Fri, 18 May 2012 12:22:03 +0000 (15:22 +0300)] 
Extract data from DESTROY cell _after_ protocol violation checks.

13 years agoIgnore unknown lines from managed proxies.
George Kadianakis [Fri, 18 May 2012 12:04:48 +0000 (15:04 +0300)] 
Ignore unknown lines from managed proxies.

13 years agoUse a more helpful log message when we can't find a proxy.
George Kadianakis [Fri, 18 May 2012 00:07:46 +0000 (03:07 +0300)] 
Use a more helpful log message when we can't find a proxy.

13 years agoAnother dirport/orport correction; this one from "cypherpunks"
Nick Mathewson [Wed, 16 May 2012 19:45:20 +0000 (15:45 -0400)] 
Another dirport/orport correction; this one from "cypherpunks"

13 years agoDocument that the ORPort flags apply to DirPort too. (thanks, Roger.)
Nick Mathewson [Wed, 16 May 2012 19:07:54 +0000 (15:07 -0400)] 
Document that the ORPort flags apply to DirPort too. (thanks, Roger.)

13 years ago5597: document new ORPort options
Nick Mathewson [Wed, 16 May 2012 18:54:16 +0000 (14:54 -0400)] 
5597: document new ORPort options

13 years agoClarify SessionGroup documentation. Bug 5437.
Nick Mathewson [Wed, 16 May 2012 18:43:11 +0000 (14:43 -0400)] 
Clarify SessionGroup documentation. Bug 5437.

13 years agoFix some more FreeBSD4 issues (based on a patch from grarpamp)
Nick Mathewson [Wed, 16 May 2012 18:31:36 +0000 (14:31 -0400)] 
Fix some more FreeBSD4 issues (based on a patch from grarpamp)

Apparently, freebsd 4 doesn't like malloc.h, needs sys/param.h for
MIN/MAX, and doesn't have a SIZE_MAX.

For bug 3894.

13 years agoUse %f, not %lf when formatting doubles
Nick Mathewson [Wed, 16 May 2012 18:26:35 +0000 (14:26 -0400)] 
Use %f, not %lf when formatting doubles

%f is correct; %lf is only needed with scanf.  Apparently, on some
old BSDs, %lf is deprecated.

Didn't we do this before?  Yes, we did.  But we only got the
instances of %lf, not more complicated things like %.5lf .  This
patch tries to get everything.

Based on a patch for 3894 by grarpamp.

13 years agoReport EADDRNOTAVAIL and EADDRINUSE as RESOURCELIMIT
Nick Mathewson [Wed, 16 May 2012 16:31:45 +0000 (12:31 -0400)] 
Report EADDRNOTAVAIL and EADDRINUSE as RESOURCELIMIT

These errors usually mean address exhaustion; reporting them as such
lets clients adjust their load to try other exits.

Fix for bug 4710; bugfix on 0.1.0.1-rc, which started using
END_STREAM_REASON_RESOURCELIMIT.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 16 May 2012 16:20:56 +0000 (12:20 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoMake the succeeding parse_http_time tests more obviously right
Nick Mathewson [Wed, 16 May 2012 16:19:56 +0000 (12:19 -0400)] 
Make the succeeding parse_http_time tests more obviously right

(When the correct answer is given in terms of seconds since the
epoch, it's hard to be sure that it really is the right answer
just by reading the code.)

13 years agoMerge branch 'bug5346_squashed' into maint-0.2.2
Nick Mathewson [Wed, 16 May 2012 16:15:35 +0000 (12:15 -0400)] 
Merge branch 'bug5346_squashed' into maint-0.2.2

13 years agoFix month check in parse_http_time, add test
Sebastian Hahn [Fri, 9 Mar 2012 14:40:44 +0000 (15:40 +0100)] 
Fix month check in parse_http_time, add test

13 years agoRemove more dubiosity in struct tm handling. related to bug5346
Nick Mathewson [Fri, 9 Mar 2012 15:24:40 +0000 (10:24 -0500)] 
Remove more dubiosity in struct tm handling. related to bug5346

13 years agochanges file for branch bug5346
Nick Mathewson [Fri, 9 Mar 2012 02:26:48 +0000 (21:26 -0500)] 
changes file for branch bug5346

13 years agoReject an additional type of bad date in parse_http_time
Nick Mathewson [Fri, 9 Mar 2012 02:09:34 +0000 (21:09 -0500)] 
Reject an additional type of bad date in parse_http_time

13 years agoFix parse_http_time and add tests
Esteban Manchado Velázquez [Mon, 20 Feb 2012 16:40:37 +0000 (17:40 +0100)] 
Fix parse_http_time and add tests

* It seems parse_http_time wasn't parsing correctly any date with commas (RFCs
  1123 and 850). Fix that.
* It seems parse_http_time was reporting the wrong month (they start at 0, not
  1). Fix that.
* Add some tests for parse_http_time, covering all three formats.

13 years agoMerge remote-tracking branch 'public/bug5139'
Nick Mathewson [Wed, 16 May 2012 15:47:13 +0000 (11:47 -0400)] 
Merge remote-tracking branch 'public/bug5139'

13 years agoAdd changes file for bug 4108
Nick Mathewson [Wed, 16 May 2012 15:44:12 +0000 (11:44 -0400)] 
Add changes file for bug 4108

13 years agoIn connection_ap_handshake_process_socks(), mark the socks request as finished if...
Fabian Keil [Sun, 25 Sep 2011 14:32:43 +0000 (16:32 +0200)] 
In connection_ap_handshake_process_socks(), mark the socks request as finished if a reply is send after a parse error

Silences the log message:
[warn] {BUG} _connection_mark_unattached_ap(): Bug: stream (marked at connection_edge.c:2224) sending two socks replies?
after the client triggered the "Tor is not an HTTP Proxy" response.

No additional socks reply was sent, though.

13 years agoMerge remote-tracking branch 'public/bug3964'
Nick Mathewson [Wed, 16 May 2012 15:33:52 +0000 (11:33 -0400)] 
Merge remote-tracking branch 'public/bug3964'

13 years agoMerge branch 'bug5380'
Nick Mathewson [Wed, 16 May 2012 15:31:40 +0000 (11:31 -0400)] 
Merge branch 'bug5380'

13 years agoRemove over-two-months-old entry guards even while running.
Roger Dingledine [Wed, 16 May 2012 15:28:36 +0000 (11:28 -0400)] 
Remove over-two-months-old entry guards even while running.

Previously, we only did this check at startup, which could lead to
us holding a guard indefinitely, and give weird results.  Fixes bug
5380; bugfix on 0.2.1.14-rc.

(Patch by Roger; changes file and commit message by Nick)

13 years agoCorrect documentation for remove_obsolete_entry_guards.
Nick Mathewson [Wed, 16 May 2012 15:18:21 +0000 (11:18 -0400)] 
Correct documentation for remove_obsolete_entry_guards.

13 years agoMerge remote-tracking branch 'public/bug2297'
Nick Mathewson [Wed, 16 May 2012 15:14:00 +0000 (11:14 -0400)] 
Merge remote-tracking branch 'public/bug2297'

13 years agoMerge remote-tracking branch 'public/bug2822'
Nick Mathewson [Wed, 16 May 2012 15:10:09 +0000 (11:10 -0400)] 
Merge remote-tracking branch 'public/bug2822'