David Goulet
2444629c86
hs-v2: Remove client support
...
Related to #40266
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-02-19 13:19:08 -05:00
Mike Perry
b2f025cb56
Merge branch 'bug40168+34088-035-v3' into bug40168+34088-035-v3-master
2021-02-18 18:17:18 +00:00
Mike Perry
917f8beb54
Add CBT unit test for Xm and alpha estimation.
2021-02-18 11:21:25 -06:00
Mike Perry
37b2159150
Completely ignore abandoned circs from circ timeout calc
...
This prevents the timeout curve from getting spread out as much, resulting in
more accurate timeout values for quantiles from 60-80.
2021-02-18 11:21:25 -06:00
David Goulet
71e9c56578
Merge branch 'maint-0.4.5'
2021-02-12 13:13:57 -05:00
David Goulet
5887c1f1f3
Merge branch 'tor-gitlab/mr/304' into maint-0.4.5
2021-02-12 13:13:50 -05:00
David Goulet
d47e937a50
test: Fix duplicate ORPort test
...
The comment of that specific unit test wanted 4 ORPorts but for some reasons
we tested for 3 which before the previous commit related to #40289 , test would
pass but it was in fact wrong.
Now the code is correct and 4 was in fact correct expected number of ports.
Related to #40289
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-02-12 13:13:43 -05:00
David Goulet
c1b5e7fa1b
Merge branch 'maint-0.4.5'
2021-02-12 12:57:18 -05:00
David Goulet
73bedcaf4d
Merge branch 'tor-gitlab/mr/303' into maint-0.4.5
2021-02-12 12:54:52 -05:00
George Kadianakis
9b6b1aedcd
Merge branch 'maint-0.4.5'
2021-02-12 13:54:18 +02:00
George Kadianakis
088a74aaab
Merge remote-tracking branch 'tor-gitlab/mr/294' into maint-0.4.5
2021-02-12 13:53:45 +02:00
David Goulet
ae5800cd9f
relay: Allow RFC1918 addresses for non public relays
...
In other words, if PublishServerDescriptor is set to 0 and AssumeReachable to
1, then allow a relay to hold a RFC1918 address.
Reasons for this are documented in #40208
Fixes #40208
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-02-10 13:24:21 -05:00
Nick Mathewson
d6b82d79dc
Merge branch 'maint-0.4.5'
2021-02-08 14:28:19 -05:00
David Goulet
01c4abc2d4
conn: Properly close MetricsPort socket on EOF
...
Handle the EOF situation for a metrics connection. Furthermore, if we failed
to fetch the data from the inbuf properly, mark the socket as closed because
the caller, connection_process_inbuf(), assumes that we did so on error.
Fixes #40257
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-02-08 14:26:45 -05:00
Nick Mathewson
0efc1e6372
40274: Add a changes file and make the same change with FD_CLOEXEC
2021-02-08 12:39:12 -05:00
Nick Mathewson
d21ad8a78d
Merge remote-tracking branch 'tor-github/pr/2128/head'
2021-02-08 12:14:58 -05:00
Nick Mathewson
8d80126eee
Remove DirCache=1 from list of supported versions.
...
Closes #40221
2021-02-08 11:40:35 -05:00
Nick Mathewson
90add50550
Merge branch 'bug40249_squashed'
2021-02-08 10:31:30 -05:00
Neel Chauhan
2391c60c5c
Add stream ID to ADDRMAP control event
2021-02-08 10:23:41 -05:00
George Kadianakis
177b535e72
Another round of unittest massaging for tor!212.
2021-02-08 15:58:06 +02:00
George Kadianakis
16915ec515
Fix broken unittest from tor!212 .
...
Be more careful with memory management in the test.
2021-02-08 15:30:50 +02:00
George Kadianakis
d4255253b0
Merge remote-tracking branch 'tor-gitlab/mr/212'
2021-02-08 13:03:07 +02:00
Alexander Færøy
07ca2a8ee9
Merge branch 'maint-0.4.5'
2021-02-05 17:17:05 +00:00
Alexander Færøy
3496804827
Merge branch 'maint-0.4.4' into maint-0.4.5
2021-02-05 17:17:05 +00:00
Alexander Færøy
af9107aff2
Fix Windows build.
...
While trying to resolve our CI issues, the Windows build broke with an
unused function error:
src/test/test_switch_id.c:37:1: error: ‘unprivileged_port_range_start’
defined but not used [-Werror=unused-function]
We solve this by moving the `#if !defined(_WIN32)` test above the
`unprivileged_port_range_start()` function defintion such that it is
included in its body.
This is an unreviewed commit.
See: tor#40275
2021-02-05 17:12:52 +00:00
Alexander Færøy
7a152997fe
Merge branch 'maint-0.4.5'
2021-02-05 16:05:57 +00:00
Alexander Færøy
0a40892e8c
Merge branch 'maint-0.4.4' into maint-0.4.5
2021-02-05 16:05:57 +00:00
Alexander Færøy
6578a3e865
Merge branch 'tor-gitlab/mr/292_squashed' into maint-0.4.4
2021-02-05 16:04:53 +00:00
Alexander Færøy
67aefd5520
Only check for bindable ports if we are unsure if it will fail.
...
We currently assume that the only way for Tor to listen on ports in the
privileged port range (1 to 1023), on Linux, is if we are granted the
NET_BIND_SERVICE capability. Today on Linux, it's possible to specify
the beginning of the unprivileged port range using a sysctl
configuration option. Docker (and thus the CI service Tor uses) recently
changed this sysctl value to 0, which causes our tests to fail as they
assume that we should NOT be able to bind to a privileged port *without*
the NET_BIND_SERVICE capability.
In this patch, we read the value of the sysctl value via the /proc/sys/
filesystem iff it's present, otherwise we assume the default
unprivileged port range begins at port 1024.
See: tor#40275
2021-02-05 16:04:21 +00:00
David Goulet
903bfc4eca
Merge branch 'maint-0.4.3' into maint-0.4.4
2021-02-03 08:54:40 -05:00
David Goulet
e50648582b
Merge branch 'maint-0.3.5' into maint-0.4.3
2021-02-03 08:54:40 -05:00
David Goulet
c2cee6c780
node: Move reentry set to use a digestmap_t
...
Any lookup now will be certain and not probabilistic as the bloomfilter.
Closes #40269
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-02-03 08:54:02 -05:00
Helge Deller
8ea00c85cb
Fix testcases regarding O_NONBLOCK on parisc/hppa architecture
...
On the parisc/hppa architecture, the O_NONBLOCK constant can be either
000200000 or 000200004, depending on the Linux kernel and glibc version
on which the binary is running.
Background of this can be read in this upstream Linux kernel patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=75ae04206a4d0e4f541c1d692b7febd1c0fdb814
The tor testcases fail because of this, because function
fd_is_nonblocking() checks hard against the O_NONBLOCK value, while it's
sufficient if it would only check if one of the bits is set.
Fix this trivial issue by just comparing if the returned file descriptor flag
and'ed with O_NONBLOCK is non-zero.
As reference, a failing build on parisc/hppa can be seen here:
https://buildd.debian.org/status/fetch.php?pkg=tor&arch=hppa&ver=0.4.4.6-1%2Bb1&stamp=1612225628&raw=0
2021-02-02 12:20:13 +01:00
David Goulet
6bde42b4de
Merge branch 'maint-0.4.5'
2021-02-01 14:10:06 -05:00
David Goulet
bd4a3f64a1
node: Move reentry set to use a digestmap_t
...
Any lookup now will be certain and not probabilistic as the bloomfilter.
Closes #40269
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-02-01 12:22:23 -05:00
David Goulet
b2434d30d2
Merge branch 'tor-gitlab/mr/285' into ticket2667_044_01
2021-01-29 14:54:21 -05:00
David Goulet
705fd37875
Merge branch 'tor-gitlab/mr/284' into ticket2667_043_01
2021-01-29 14:51:38 -05:00
David Goulet
ec9575944a
Merge branch 'maint-0.4.5'
2021-01-29 14:40:56 -05:00
George Kadianakis
46efbcb116
test: Add test for exits blocking reentry to the network
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-01-29 14:28:56 -05:00
George Kadianakis
9eba65bd8b
test: Add test for exits blocking reentry to the network
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-01-29 14:19:17 -05:00
David Goulet
ea38016202
Merge branch 'maint-0.4.3' into maint-0.4.4
2021-01-28 12:46:31 -05:00
David Goulet
79cb47cfc2
Merge branch 'maint-0.3.5' into maint-0.4.3
2021-01-28 12:46:31 -05:00
David Goulet
9556276f07
Merge branch 'tor-gitlab/mr/50' into maint-0.3.5
2021-01-28 12:46:24 -05:00
David Goulet
1887231afb
Merge branch 'tor-gitlab/mr/256' into maint-0.4.4
2021-01-28 12:12:01 -05:00
David Goulet
5c89197c9f
Merge branch 'tor-gitlab/mr/255' into maint-0.4.3
2021-01-28 12:11:33 -05:00
David Goulet
1bdccc03a9
Merge branch 'tor-gitlab/mr/254' into maint-0.3.5
2021-01-28 12:10:39 -05:00
David Goulet
737cd79c42
Merge branch 'maint-0.4.3' into maint-0.4.4
2021-01-28 12:04:42 -05:00
David Goulet
a17be1b5b6
Merge branch 'maint-0.3.5' into maint-0.4.3
2021-01-28 12:04:42 -05:00
David Goulet
c6fb26695b
Merge remote-tracking branch 'tor-gitlab/mr/186' into maint-0.3.5
2021-01-28 12:04:37 -05:00
Nick Mathewson
b019c83853
Merge branch 'maint-0.4.5'
2021-01-27 09:36:39 -05:00