Nick Mathewson
b205061eb1
Describe schedules as TimeInterval, not TimeIntervalCommaList.
2018-04-30 09:47:35 -04:00
Nick Mathewson
6cb467b462
Merge remote-tracking branch 'github/ticket23354'
2018-04-30 09:45:28 -04:00
Nick Mathewson
a9736f1f38
Merge remote-tracking branch 'github/ticket19429_034'
2018-04-30 09:41:33 -04:00
Nick Mathewson
cb0af6157c
Move stdbool include to torint.h
...
It's friday, and this seems like a good idea, and they're egging me
on in IRC.
2018-04-27 15:08:27 -04:00
Nick Mathewson
78eb0192da
Merge branch 'maint-0.3.3'
2018-04-27 13:26:17 -04:00
teor
b116710e31
Stop initialising rust submodules, travis does this for us
...
Fixes #24630 .
2018-04-27 13:26:12 -04:00
Nick Mathewson
d6a773f57d
Only define X509_get_not{BeforeAfter} if they are not defined
...
(The originally submitted version of a15b2c57e1
broke
with OpenSSL 1.1.0.)
2018-04-27 12:55:52 -04:00
Nick Mathewson
346c2eb4e6
Merge branch 'bug25843_v2_squashed'
2018-04-27 12:45:07 -04:00
George Kadianakis
d00ed406e0
Introduce torrc option NumPrimaryGuards
2018-04-27 12:44:54 -04:00
David Goulet
8b58e1e323
test: Unit test for the HS service event rescan
...
Because we rescan the main loop event list if the global map of services has
changed, this makes sure it does work.
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-27 11:16:57 -04:00
David Goulet
f7633c1fca
hs: Rescan the main loop event list if the service map changes
...
Because ADD_ONION/DEL_ONION can modify the global service map (both for v2 and
v3), we need to rescan the event list so we either enable or disable the HS
service main loop event.
Fixees #25939
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-27 11:16:57 -04:00
David Goulet
3ab017b10c
main: Don't rescan main loop events if not initialized
...
This is done because it makes our life easier with unit tests. Also, a rescan
on an uninitialized event list will result in a stacktrace.
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-27 11:16:57 -04:00
Nick Mathewson
3a47dfed34
Merge branch 'ticket25376_034_031_squashed'
2018-04-27 09:28:43 -04:00
David Goulet
d6903e9e87
hibernation: Rescan the event list on state change
...
When we change the hibernation state, rescan the main loop event list because
the new state might affect the events.
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-27 09:28:00 -04:00
David Goulet
05d314f888
main: Add mainloop callback event flags
...
Implement the ability to set flags per events which influences the set up of
the event.
This commit only adds one flag which is "need network" meaning that the event
is not enabled if tor has disabled the network or if hibernation mode.
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-27 09:28:00 -04:00
Nick Mathewson
cc74dc0066
Merge branch 'ticket25933'
2018-04-26 18:40:27 -04:00
Nick Mathewson
302908657f
Fix a test assertion failure due to uninitialized mainloop events
...
Bug not in any released Tor.
2018-04-26 14:39:26 -04:00
David Goulet
9fd319168b
test: Add missing geoip_dummy file to EXTRA_DIST
...
Needed to run tests from the tarball else the geoip unit test would fail by
not finding that file.
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-26 14:15:24 -04:00
Nick Mathewson
857e210b7d
Merge branch 'ticket25931'
2018-04-26 13:52:16 -04:00
Nick Mathewson
ff796ad087
Remove connection_ap_attach_pending() from per-second callback.
...
In 25374, we created the necessary post-loop event for scheduling
connection_ap_attach_pending as needed. Before that, we were
already running this event once per mainloop. There's no reason to
also run it once per second.
Closes ticket 25933. No changes file, since the relevant change is
already in 25374. Or possibly in 17590, depending on how you look
at it.
2018-04-26 13:37:13 -04:00
Nick Mathewson
96c5ac338a
Move close-and-cleanup functions to a postloop event.
...
Implements ticket 25932.
2018-04-26 13:15:38 -04:00
Nick Mathewson
8a81a70878
Move consdiffmgr_rescan() into a mainloop event.
...
The change here was very simple, since there is a flag set whenever
we want to schedule this event.
Closes ticket 25391.
m
2018-04-26 12:20:01 -04:00
David Goulet
7b09282dc7
Merge remote-tracking branch 'dgoulet/ticket25515_034_01-squashed'
2018-04-26 11:38:15 -04:00
juga0
f4ad30448a
Recover newline at the EOF, removed by mistake
...
in 071236e3e2
.
2018-04-26 11:33:22 -04:00
juga0
3d4bbf94c6
tests: Add forgotten empty file required for geoip
2018-04-26 11:33:22 -04:00
juga0
d0ad74e0f6
Add clarification about type of file expected
2018-04-26 11:33:22 -04:00
juga0
96469b82f8
Remove FIXME about comparing num countries,
...
* remove the fixme since clearing the countries should be other issue
* remove unused variables related to it since that cause travis to fail
2018-04-26 11:33:22 -04:00
Isis Lovecruft
6a28a82998
tests: Fix a couple typos and remove unnecessary inline comments.
2018-04-26 11:33:22 -04:00
Isis Lovecruft
3f967bfbd1
tests: Skip two more geoip_load_file tests on Windows.
...
* FIXES part of #25515 : https://bugs.torproject.org/25515
2018-04-26 11:33:22 -04:00
Nick Mathewson
33cba1195b
Remove a blank line that was bothering me.
2018-04-26 09:10:58 -04:00
Nick Mathewson
2748dd0f1c
Ignore CircuitPriorityHalflife values under -EPSILON.
...
Previously, we were ignoring values _over_ EPSILON. This bug was
also causing a warning at startup because the default value is set
to -1.0.
Fixes bug 25577; bugfix on 6b1dba214d
. Bug not in any released tor.
2018-04-25 09:15:47 -04:00
Nick Mathewson
58f54a3588
Merge branch 'maint-0.3.2' into maint-0.3.3
2018-04-25 08:01:54 -04:00
Nick Mathewson
a052eea480
Merge branch 'maint-0.3.3'
2018-04-25 08:01:54 -04:00
Nick Mathewson
7c3f87eb4b
Merge branch 'maint-0.3.1' into maint-0.3.2
2018-04-25 08:01:53 -04:00
Nick Mathewson
bb35405d2a
Fix a copy-paste error in the fix for #23693 .
...
Found by coverity; CID 25912; bug not in any released Tor.
2018-04-25 08:00:55 -04:00
Nick Mathewson
85cd8386fa
Merge branch 'maint-0.3.2' into maint-0.3.3
2018-04-24 10:38:37 -04:00
Nick Mathewson
8664f76dd2
Merge branch 'maint-0.3.3'
2018-04-24 10:38:37 -04:00
Nick Mathewson
89a3fafd49
Merge branch 'maint-0.3.1' into maint-0.3.2
2018-04-24 10:38:37 -04:00
Nick Mathewson
5cc3a0379e
Merge branch 'maint-0.2.9' into maint-0.3.1
2018-04-24 10:38:37 -04:00
Nick Mathewson
d44753b0e8
Merge branch 'travis_distcheck_033' into maint-0.3.3
2018-04-24 10:38:34 -04:00
Nick Mathewson
34e7dca9c9
Merge branch 'travis_distcheck_029' into maint-0.2.9
2018-04-24 10:38:19 -04:00
Nick Mathewson
ea3c3a10a2
Merge branch 'maint-0.3.3'
2018-04-24 10:37:36 -04:00
Nick Mathewson
7e7b052b2a
Merge branch 'maint-0.3.2' into maint-0.3.3
2018-04-24 10:37:36 -04:00
Nick Mathewson
9187cdb1cd
Merge remote-tracking branch 'dgoulet/bug25901_032_01' into maint-0.3.2
2018-04-24 10:36:17 -04:00
Nick Mathewson
9be7608fda
Merge branch 'maint-0.3.3'
2018-04-24 08:51:58 -04:00
Nick Mathewson
6182f60f75
Merge branch 'maint-0.3.2' into maint-0.3.3
2018-04-24 08:51:55 -04:00
Nick Mathewson
d2951b381b
Merge branch 'maint-0.3.1' into maint-0.3.2
2018-04-24 08:49:24 -04:00
Nick Mathewson
e888634076
Merge remote-tracking branch 'public/bug23693_031_redux' into maint-0.3.1
2018-04-24 08:49:20 -04:00
David Goulet
b259008c56
hs: Fix memleak in v3 on SIGHUP
...
Fixes #25901
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-23 11:09:57 -04:00
Nick Mathewson
192c7c8bf9
Merge remote-tracking branch 'dgoulet/ticket25762_034_05'
2018-04-23 11:02:05 -04:00