]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agons: Call notify_networkstatus_changed() after the new consensus is set globally
David Goulet [Wed, 31 Jan 2018 16:08:33 +0000 (11:08 -0500)] 
ns: Call notify_networkstatus_changed() after the new consensus is set globally

In 0.3.2.1-alpha, we've added this function in order to have a way to notify
other subsystems that the consensus just changed. The old consensus and the
new one are passed to it.

Before this patch, this was done _before_ the new consensus was set globally
(thus NOT accessible by getting the latest consensus). The scheduler
notification was assuming that it was set and select_scheduler() is looking at
the latest consensus to get the parameters it might needs. This was very wrong
because at that point it is still the old consensus set globally.

With this commit, notify_networkstatus_changed() has been moved _after_ the
new consensus is set globally. The main obvious reasons is to fix the bug
described above and in #24975. The other reason is that this notify function
doesn't return anything which could be allowing the possibility of refusing to
set the new consensus on error. In other words, the new consensus is set right
after the notification whatever happens.

It does no harm or change in behavior to set the new consensus first and then
notify the subsystems. The two functions currently used are for the control
port using the old and new consensus and sending the diff. The second is the
scheduler that needs the new consensus to be set globally before being called.

Of course, the function has been documented accordinly to clearly state it is
done _after_ the new consensus is set.

Fixes #24975

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Wed, 31 Jan 2018 15:06:49 +0000 (10:06 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoBut in most Earth cultures, there are 60s in a minute.
Nick Mathewson [Wed, 31 Jan 2018 15:06:43 +0000 (10:06 -0500)] 
But in most Earth cultures, there are 60s in a minute.

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Wed, 31 Jan 2018 15:01:13 +0000 (10:01 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoadd a rate-limit.
Nick Mathewson [Wed, 31 Jan 2018 15:01:10 +0000 (10:01 -0500)] 
add a rate-limit.

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Wed, 31 Jan 2018 14:50:24 +0000 (09:50 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoWhen a tor_cert_T check fails, log the reason why.
Nick Mathewson [Fri, 26 Jan 2018 18:55:25 +0000 (13:55 -0500)] 
When a tor_cert_T check fails, log the reason why.

Diagnostic attempt for 24972.

7 years agoIf out-of-disk when saving a consensus cache entry, don't BUG.
Nick Mathewson [Fri, 26 Jan 2018 18:14:14 +0000 (13:14 -0500)] 
If out-of-disk when saving a consensus cache entry, don't BUG.

Just warn instead.

Fixes bug 24859.

7 years agoFix a memory leak in scheduler/loop_kist
Nick Mathewson [Wed, 24 Jan 2018 17:07:45 +0000 (12:07 -0500)] 
Fix a memory leak in scheduler/loop_kist

Fixes bug 25005.

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Fri, 19 Jan 2018 21:30:50 +0000 (16:30 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge remote-tracking branch 'dgoulet/bug24895_032_02' into maint-0.3.2
Nick Mathewson [Fri, 19 Jan 2018 21:30:44 +0000 (16:30 -0500)] 
Merge remote-tracking branch 'dgoulet/bug24895_032_02' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Fri, 19 Jan 2018 21:30:12 +0000 (16:30 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

"ours" merge to avoid maint-0.3.0's version of 24895.

7 years agoMerge remote-tracking branch 'dgoulet/bug24895_031_02' into maint-0.3.1
Nick Mathewson [Fri, 19 Jan 2018 21:30:02 +0000 (16:30 -0500)] 
Merge remote-tracking branch 'dgoulet/bug24895_031_02' into maint-0.3.1

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0 maint-0.3.0
Nick Mathewson [Fri, 19 Jan 2018 21:29:43 +0000 (16:29 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

 Conflicts:
        src/or/rendservice.c

7 years agoMerge remote-tracking branch 'dgoulet/bug24895_029_02' into maint-0.2.9
Nick Mathewson [Fri, 19 Jan 2018 21:29:15 +0000 (16:29 -0500)] 
Merge remote-tracking branch 'dgoulet/bug24895_029_02' into maint-0.2.9

7 years agoMerge branch 'bug24895_031_02' into bug24895_032_02
David Goulet [Fri, 19 Jan 2018 21:26:26 +0000 (16:26 -0500)] 
Merge branch 'bug24895_031_02' into bug24895_032_02

7 years agoMerge branch 'bug24895_029_02' into bug24895_031_02
David Goulet [Fri, 19 Jan 2018 21:21:55 +0000 (16:21 -0500)] 
Merge branch 'bug24895_029_02' into bug24895_031_02

7 years agohs: Use hs_service_max_rdv_failures consensus param, defaulting to 2
Roger Dingledine [Fri, 19 Jan 2018 08:00:43 +0000 (03:00 -0500)] 
hs: Use hs_service_max_rdv_failures consensus param, defaulting to 2

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Fri, 19 Jan 2018 15:18:29 +0000 (10:18 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge remote-tracking branch 'tlyu-github/travis-workaround-031' into maint-0.3.1
Nick Mathewson [Fri, 19 Jan 2018 15:18:21 +0000 (10:18 -0500)] 
Merge remote-tracking branch 'tlyu-github/travis-workaround-031' into maint-0.3.1

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Fri, 19 Jan 2018 15:17:33 +0000 (10:17 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

"ours" merge to avoid 0.2.5 version of #24863 fix.

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Fri, 19 Jan 2018 15:17:05 +0000 (10:17 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoMerge branch 'maint-0.2.5' into maint-0.2.9
Nick Mathewson [Fri, 19 Jan 2018 15:16:47 +0000 (10:16 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.9

7 years agoturn MAX_REND_FAILURES into a function
Roger Dingledine [Fri, 19 Jan 2018 07:38:07 +0000 (02:38 -0500)] 
turn MAX_REND_FAILURES into a function

no actual changes in behavior

7 years agoMAX_REND_FAILURES is 1, but we would try three times
Roger Dingledine [Mon, 15 Jan 2018 21:30:55 +0000 (16:30 -0500)] 
MAX_REND_FAILURES is 1, but we would try three times

Fix an "off by 2" error in counting rendezvous failures on the onion
service side.

While we thought we would stop the rendezvous attempt after one failed
circuit, we were actually making three circuit attempts before giving up.

Fixes bug 24895; bugfix on 0.0.6.

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Thu, 18 Jan 2018 13:13:48 +0000 (08:13 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'bug24826_031' into maint-0.3.1
Nick Mathewson [Thu, 18 Jan 2018 13:13:45 +0000 (08:13 -0500)] 
Merge branch 'bug24826_031' into maint-0.3.1

7 years agoWork around Travis CI ptrace regression
Taylor Yu [Wed, 10 Jan 2018 20:52:04 +0000 (14:52 -0600)] 
Work around Travis CI ptrace regression

Travis CI deployed a change that disables ptrace capabilities in
container builds, which prevents LeakSanitizer on clang from working
properly.  Set "sudo: required" to force non-container builds for
clang and work around this.

7 years agoWork around Travis CI ptrace regression
Taylor Yu [Wed, 10 Jan 2018 20:52:04 +0000 (14:52 -0600)] 
Work around Travis CI ptrace regression

Travis CI deployed a change that disables ptrace capabilities in
container builds, which prevents LeakSanitizer on clang from working
properly.  Set "sudo: required" to force non-container builds for
clang and work around this.

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Wed, 17 Jan 2018 16:12:15 +0000 (11:12 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge remote-tracking branch 'arma/bug24894' into maint-0.3.2
Nick Mathewson [Wed, 17 Jan 2018 15:49:45 +0000 (10:49 -0500)] 
Merge remote-tracking branch 'arma/bug24894' into maint-0.3.2

7 years agoMerge remote-tracking branch 'public/bug24652_032' into maint-0.3.2
Nick Mathewson [Tue, 16 Jan 2018 18:35:52 +0000 (13:35 -0500)] 
Merge remote-tracking branch 'public/bug24652_032' into maint-0.3.2

7 years agoImprove fragile-hardening performance of consensus_split_lines.
Nick Mathewson [Tue, 16 Jan 2018 17:42:40 +0000 (12:42 -0500)] 
Improve fragile-hardening performance of consensus_split_lines.

For whatever reason, in my testing, using memchr() here improves
performance over strchr() by a great deal.

Fixes bug 24826; bugfix on 0.3.1.1-alpha.

7 years agoRemove false positives from channel_is_client()
Roger Dingledine [Tue, 16 Jan 2018 03:33:40 +0000 (22:33 -0500)] 
Remove false positives from channel_is_client()

Fix a set of false positives where relays would consider connections
to other relays as being client-only connections (and thus e.g.
deserving different link padding schemes) if those relays fell out
of the consensus briefly.

Now we look only at the initial handshake and whether the connection
authenticated as a relay.

Fixes bug 24898; bugfix on 0.3.1.1-alpha.

7 years agov3 onion services now obey MAX_REND_FAILURES
Roger Dingledine [Mon, 15 Jan 2018 21:41:47 +0000 (16:41 -0500)] 
v3 onion services now obey MAX_REND_FAILURES

New-style (v3) onion services now obey the "max rendezvous circuit
attempts" logic.

Previously they would make as many rendezvous circuit attempts as they
could fit in the MAX_REND_TIMEOUT second window before giving up.

Fixes bug 24894; bugfix on 0.3.2.1-alpha.

7 years agoReword requirement to set Myfamily correctly
Sebastian Hahn [Thu, 11 Jan 2018 21:03:14 +0000 (22:03 +0100)] 
Reword requirement to set Myfamily correctly

7 years agoNote contactinfo and myfamily as required in more places
Nick Mathewson [Wed, 20 Dec 2017 16:10:14 +0000 (11:10 -0500)] 
Note contactinfo and myfamily as required in more places

Includes a sentence from cypherpunks; for ticket 24526.

7 years agoIncrement version to 0.3.2.9-dev
Nick Mathewson [Tue, 9 Jan 2018 15:12:25 +0000 (10:12 -0500)] 
Increment version to 0.3.2.9-dev

7 years agoIncrement version to 0.3.2.9
Nick Mathewson [Mon, 8 Jan 2018 16:39:24 +0000 (11:39 -0500)] 
Increment version to 0.3.2.9

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Mon, 8 Jan 2018 16:10:36 +0000 (11:10 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Mon, 8 Jan 2018 16:10:36 +0000 (11:10 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Mon, 8 Jan 2018 16:10:36 +0000 (11:10 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoAdd changes file for new fallback directory list.
Nick Mathewson [Mon, 8 Jan 2018 16:09:08 +0000 (11:09 -0500)] 
Add changes file for new fallback directory list.

7 years agoAdd 7 other fallback dirs from teor's tests
Nick Mathewson [Mon, 8 Jan 2018 16:03:44 +0000 (11:03 -0500)] 
Add 7 other fallback dirs from teor's tests

These are from "fallback_dirs_2018_01_06_2323_UTC_44aa1adf35_AU.inc"

7 years agoUpdate the fallback_dirs.inc file: part 1
Nick Mathewson [Mon, 8 Jan 2018 15:57:06 +0000 (10:57 -0500)] 
Update the fallback_dirs.inc file: part 1

This takes the updated fallback_dirs_2018_01_06_CA.inc from
pastly's scan.

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Mon, 8 Jan 2018 14:35:55 +0000 (09:35 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Mon, 8 Jan 2018 14:34:57 +0000 (09:34 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Mon, 8 Jan 2018 14:34:56 +0000 (09:34 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoMerge branch 'maint-0.2.5' into maint-0.2.9
Nick Mathewson [Mon, 8 Jan 2018 14:34:56 +0000 (09:34 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.9

7 years agoUpdate geoip and geoip6 to the January 5 2018 database.
Karsten Loesing [Mon, 8 Jan 2018 10:36:38 +0000 (11:36 +0100)] 
Update geoip and geoip6 to the January 5 2018 database.

7 years agoremove redundant "implement this" from log message
Roger Dingledine [Fri, 5 Jan 2018 23:23:07 +0000 (18:23 -0500)] 
remove redundant "implement this" from log message

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Fri, 5 Jan 2018 21:41:34 +0000 (16:41 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Fri, 5 Jan 2018 21:41:34 +0000 (16:41 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Fri, 5 Jan 2018 21:41:34 +0000 (16:41 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'teor_ticket24681_028' into maint-0.2.9
Nick Mathewson [Fri, 5 Jan 2018 21:41:31 +0000 (16:41 -0500)] 
Merge branch 'teor_ticket24681_028' into maint-0.2.9

7 years agofix a wide line
Nick Mathewson [Fri, 5 Jan 2018 16:28:23 +0000 (11:28 -0500)] 
fix a wide line

7 years agoUse -lresolv in LIBS with rust on OSX.
Nick Mathewson [Thu, 4 Jan 2018 19:02:24 +0000 (14:02 -0500)] 
Use -lresolv in LIBS with rust on OSX.

This fixes issue #24652, and is a workaround for Rust issue
https://github.com/rust-lang/rust/issues/46797 .

7 years agoMerge branch 'bug24634' into maint-0.3.2
Nick Mathewson [Wed, 3 Jan 2018 15:08:36 +0000 (10:08 -0500)] 
Merge branch 'bug24634' into maint-0.3.2

7 years agoFix some shadowed-global warnings.
Nick Mathewson [Wed, 3 Jan 2018 14:13:00 +0000 (09:13 -0500)] 
Fix some shadowed-global warnings.

These are all about local variables shadowing global
functions. That isn't normally a problem, but at least one
compiler we care about seems to treat this as a case of -Wshadow
violation, so let's fix it.

Fixes bug 24634; bugfix on 0.3.2.1-alpha.

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Wed, 3 Jan 2018 14:00:00 +0000 (09:00 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Wed, 3 Jan 2018 13:59:59 +0000 (08:59 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Wed, 3 Jan 2018 13:59:59 +0000 (08:59 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoMerge branch 'bug24633_029' into maint-0.2.9
Nick Mathewson [Wed, 3 Jan 2018 13:59:52 +0000 (08:59 -0500)] 
Merge branch 'bug24633_029' into maint-0.2.9

7 years agoMerge remote-tracking branch 'teor/bug24703_032' into maint-0.3.2
Nick Mathewson [Tue, 2 Jan 2018 19:42:27 +0000 (14:42 -0500)] 
Merge remote-tracking branch 'teor/bug24703_032' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Tue, 2 Jan 2018 15:10:28 +0000 (10:10 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Tue, 2 Jan 2018 15:10:28 +0000 (10:10 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Tue, 2 Jan 2018 15:10:28 +0000 (10:10 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge remote-tracking branch 'teor/bug24736_028' into maint-0.2.9
Nick Mathewson [Tue, 2 Jan 2018 15:09:44 +0000 (10:09 -0500)] 
Merge remote-tracking branch 'teor/bug24736_028' into maint-0.2.9

7 years agoClear the address when we can't choose a reachable address
teor [Sun, 24 Dec 2017 14:53:14 +0000 (01:53 +1100)] 
Clear the address when we can't choose a reachable address

When the fascist_firewall_choose_address_ functions don't find a
reachable address, set the returned address to the null address and port.

This is a precautionary measure, because some callers do not check the
return value.

Fixes bug 24736; bugfix on 0.2.8.2-alpha.

7 years agoMake the default DirAuthorityFallbackRate 0.1
teor [Fri, 22 Dec 2017 13:00:18 +0000 (00:00 +1100)] 
Make the default DirAuthorityFallbackRate 0.1

This makes clients on the public tor network prefer to bootstrap off fallback
directory mirrors.

This is a follow-up to 24679, which removed weights from the default fallbacks.

Implements ticket 24681.

7 years agoBump the dates and Tor versions on the sample torrcs
teor [Fri, 22 Dec 2017 00:22:48 +0000 (11:22 +1100)] 
Bump the dates and Tor versions on the sample torrcs

7 years agoClarify the OutboundBindAddressOR documentation in the sample torrc
teor [Fri, 22 Dec 2017 00:22:10 +0000 (11:22 +1100)] 
Clarify the OutboundBindAddressOR documentation in the sample torrc

Part of 22145

7 years agoDocument IPv6Exit in the sample torrcs
teor [Fri, 22 Dec 2017 00:10:30 +0000 (11:10 +1100)] 
Document IPv6Exit in the sample torrcs

Sample config-only change.

Implements 24703.

7 years agoIncrement version to 0.3.2.8-rc-dev
Nick Mathewson [Thu, 21 Dec 2017 19:22:54 +0000 (14:22 -0500)] 
Increment version to 0.3.2.8-rc-dev

7 years agoIncrement version to 0.3.2.8-rc
Nick Mathewson [Thu, 21 Dec 2017 17:42:00 +0000 (12:42 -0500)] 
Increment version to 0.3.2.8-rc

7 years agoMerge remote-tracking branch 'dgoulet/bug24671_032_01' into maint-0.3.2
Nick Mathewson [Thu, 21 Dec 2017 16:13:33 +0000 (11:13 -0500)] 
Merge remote-tracking branch 'dgoulet/bug24671_032_01' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Thu, 21 Dec 2017 15:50:33 +0000 (10:50 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Thu, 21 Dec 2017 15:50:06 +0000 (10:50 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Thu, 21 Dec 2017 15:49:40 +0000 (10:49 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoUse monotime_coarse_absolute_msec() in destroy queue
Nick Mathewson [Thu, 21 Dec 2017 15:48:37 +0000 (10:48 -0500)] 
Use monotime_coarse_absolute_msec() in destroy queue

This way it will match the insert queue in 029 and later.

7 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Thu, 21 Dec 2017 15:43:12 +0000 (10:43 -0500)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

7 years agoMerge branch 'maint-0.2.5' into maint-0.2.8 maint-0.2.8
Nick Mathewson [Thu, 21 Dec 2017 15:43:06 +0000 (10:43 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.8

7 years agoMerge branch 'bug24666_squashed_025' into maint-0.2.5
Nick Mathewson [Thu, 21 Dec 2017 15:40:10 +0000 (10:40 -0500)] 
Merge branch 'bug24666_squashed_025' into maint-0.2.5

7 years agoMove free to end of test function so coverity won't complain.
Nick Mathewson [Thu, 21 Dec 2017 15:39:29 +0000 (10:39 -0500)] 
Move free to end of test function so coverity won't complain.

7 years agoMove destroy cells into a separate queue type of their own, to save RAM
Nick Mathewson [Tue, 19 Dec 2017 18:53:52 +0000 (13:53 -0500)] 
Move destroy cells into a separate queue type of their own, to save RAM

We've been seeing problems with destroy cells queues taking up a
huge amount of RAM.  We can mitigate this, since while a full packed
destroy cell takes 514 bytes, we only need 5 bytes to remember a
circuit ID and a reason.

Fixes bug 24666. Bugfix on 0.2.5.1-alpha, when destroy cell queues
were introduced.

7 years agoclarify a comment
Nick Mathewson [Thu, 21 Dec 2017 15:27:37 +0000 (10:27 -0500)] 
clarify a comment

7 years agosched: Consider extra_space even if negative in KIST
David Goulet [Tue, 19 Dec 2017 21:20:36 +0000 (16:20 -0500)] 
sched: Consider extra_space even if negative in KIST

With extra_space negative, it means that the "notsent" queue is quite large so
we must consider that value with the current computed tcp_space. If we end up
to have negative space, we should not add more data to the kernel since the
notsent queue is just too filled up.

Fixes #24665

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agosched: Use lower layer cell limit with KISTLite
David Goulet [Wed, 20 Dec 2017 19:14:02 +0000 (14:14 -0500)] 
sched: Use lower layer cell limit with KISTLite

Instead of using INT_MAX as a write limit for KISTLite, use the lower layer
limit which is using the specialized num_cells_writeable() of the channel that
will down the line check the connection's outbuf and limit it to 32KB
(OR_CONN_HIGHWATER).

That way we don't take the chance of bloating the connection's outbuf and we
keep the cells in the circuit queue which our OOM handler can take care of,
not the outbuf.

Finally, this commit adds a log_debug() in the update socket information
function of KIST so we can get the socket information in debug.

Fixes #24671

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge branch 'maint-0.3.0' into maint-0.3.1
Nick Mathewson [Wed, 20 Dec 2017 17:15:24 +0000 (12:15 -0500)] 
Merge branch 'maint-0.3.0' into maint-0.3.1

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.0
Nick Mathewson [Wed, 20 Dec 2017 17:15:24 +0000 (12:15 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.0

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Wed, 20 Dec 2017 17:15:24 +0000 (12:15 -0500)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.2.8' into maint-0.2.9
Nick Mathewson [Wed, 20 Dec 2017 17:15:23 +0000 (12:15 -0500)] 
Merge branch 'maint-0.2.8' into maint-0.2.9

7 years agoMerge branch 'maint-0.2.5' into maint-0.2.8
Nick Mathewson [Wed, 20 Dec 2017 17:15:23 +0000 (12:15 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.8

7 years agoUpdate geoip and geoip6 to the December 6 2017 database.
Karsten Loesing [Wed, 20 Dec 2017 16:36:29 +0000 (17:36 +0100)] 
Update geoip and geoip6 to the December 6 2017 database.

7 years agoMerge branch 'stack_again_032' into maint-0.3.2
Nick Mathewson [Wed, 20 Dec 2017 16:19:18 +0000 (11:19 -0500)] 
Merge branch 'stack_again_032' into maint-0.3.2

7 years agoUpdate the unit tests to reflect the change of 24425
Nick Mathewson [Wed, 20 Dec 2017 15:39:19 +0000 (10:39 -0500)] 
Update the unit tests to reflect the change of 24425

7 years agoMerge remote-tracking branch 'dgoulet/ticket24425_032_01' into maint-0.3.2
Nick Mathewson [Wed, 20 Dec 2017 14:59:06 +0000 (09:59 -0500)] 
Merge remote-tracking branch 'dgoulet/ticket24425_032_01' into maint-0.3.2

7 years agoFix the clz32 and clz64 settings on MSVC.
Nick Mathewson [Wed, 20 Dec 2017 14:34:25 +0000 (09:34 -0500)] 
Fix the clz32 and clz64 settings on MSVC.

Fixes bug 24633; bugfix on 0.2.9.1-alpha.

7 years agobump to 0.3.2.7-rc-dev
Nick Mathewson [Thu, 14 Dec 2017 19:12:31 +0000 (14:12 -0500)] 
bump to 0.3.2.7-rc-dev

7 years agovim sometimes makes swo tempfiles
Nick Mathewson [Wed, 13 Dec 2017 17:07:45 +0000 (12:07 -0500)] 
vim sometimes makes swo tempfiles