summaryrefslogtreecommitdiff
path: root/changes
AgeCommit message (Collapse)Author
2018-05-03Merge remote-tracking branch 'github/ticket25952'Nick Mathewson
2018-05-03Merge remote-tracking branch 'github/ticket25951'Nick Mathewson
2018-05-03Merge remote-tracking branch 'github/ticket25949'Nick Mathewson
2018-05-03Merge remote-tracking branch 'asn/bug23107'David Goulet
2018-05-02Make hs_get_responsible_hsdirs() deterministic.Nick Mathewson
This test was using the current time to pick the time period number, and a randomly generated hs key. Therefore, it sometimes picked an index that would wrap around the example dht, and sometimes would not. The fix here is just to fix the time period and the public key. Fixes bug 25997; bugfix on 0.3.2.1-alpha.
2018-05-02Merge branch 'maint-0.3.3'Nick Mathewson
2018-05-02Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-05-02Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-05-02Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-05-02Stop logging stack contents when reading a zero-length bandwidth fileteor
When directory authorities read a zero-byte bandwidth file, they log a warning with the contents of an uninitialised buffer. Log a warning about the empty file instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
2018-05-02squash! Optimize legacy intro point digest calculation.George Kadianakis
2018-05-02Optimize legacy intro point digest calculation.Neel Chauhan
2018-05-01coverage: Repeat the test for avoiding failed intro pointsNick Mathewson
This test, in test_client_pick_intro(), will have different coverage depending on whether it selects a good intro point the first time or whether it has to try a few times. Since it produces the shorter coverage with P=1/4, repeat this test 64 times so that it only provides reduced coverage with P=1/2^128. The performance cost is negligible. Closes ticket 25996. This test was introduced in 0.3.2.1-alpha.
2018-05-01Merge remote-tracking branch 'github/eliminate_gettimeofday_cached'Nick Mathewson
2018-05-01Move unreachable port warnings to a periodic event.Nick Mathewson
Arguably, the conditions under which these events happen should be a bit different, but the rules are complex enough here that I've tried to have this commit be pure refactoring. Closes ticket 25952. Finally, before this code goes away, take a moment to look at the amazing way that we used to try to have an event happen every N seconds: get_uptime() / N != (get_uptime()+seconds_elapsed) / N Truly, it is a thing of wonder. I'm glad we didn't start using this pattern everywhere else.
2018-05-01Add changes file for #25610David Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-05-01Move responsibility for voting into a separate periodic callback.Nick Mathewson
Closes ticket25937.
2018-05-01Merge remote-tracking branch 'ffmancera-1/bug20522'Nick Mathewson
2018-05-01Remove responsibility for flushing log cbs from mainloopNick Mathewson
This is now handled as-needed as the control module is flushing its own callbacks. Closes ticket 25951.
2018-05-01Merge remote-tracking branch 'neel/b23094'Nick Mathewson
2018-05-01Merge branch 'bug24734_squashed'Nick Mathewson
2018-05-01Remove the return value from the fascist_firewall_choose_address_* family of ↵Neel Chauhan
functions
2018-04-30Merge branch 'ticket25948_squashed'Nick Mathewson
2018-04-30Move responsibility for or_state_save() to a scheduled callbackNick Mathewson
Closes ticket 25948.
2018-04-30Merge remote-tracking branch 'github/ticket23354'Nick Mathewson
2018-04-30Merge remote-tracking branch 'github/ticket19429_034'Nick Mathewson
2018-04-28Make hsdir_index in node_t a hsdir_index_t rather than a pointer.Neel Chauhan
2018-04-27Merge branch 'bug25843_v2_squashed'Nick Mathewson
2018-04-27Introduce torrc option NumPrimaryGuardsGeorge Kadianakis
2018-04-27Move responsibility for deferred SIGNEWNYM into a mainloop eventNick Mathewson
Closes ticket 25949.
2018-04-27main: Add mainloop callback event flagsDavid Goulet
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-26Merge branch 'ticket25931'Nick Mathewson
2018-04-26Move close-and-cleanup functions to a postloop event.Nick Mathewson
Implements ticket 25932.
2018-04-26Move consdiffmgr_rescan() into a mainloop event.Nick Mathewson
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-26Remove the "cached gettimeofday" logic.Nick Mathewson
Previously were using this value to have a cheap highish-resolution timer. But we were only using it in one place, and current dogma is to use monotime_coarse_t for this kind of thing.
2018-04-26Rewrite time-handling in circuitmux_ewma to use monotime_coarseNick Mathewson
This part of the code was the only part that used "cached getttimeofday" feature, which wasn't monotonic, which we updated at slight expense, and which I'd rather not maintain.
2018-04-24Merge branch 'maint-0.3.3'Nick Mathewson
2018-04-24Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-04-24Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-04-24Merge branch 'travis_distcheck_033' into maint-0.3.3Nick Mathewson
2018-04-24Merge branch 'travis_distcheck_029' into maint-0.2.9Nick Mathewson
2018-04-24Merge branch 'maint-0.3.3'Nick Mathewson
2018-04-24Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-04-24Merge remote-tracking branch 'dgoulet/bug25901_032_01' into maint-0.3.2Nick Mathewson
2018-04-24Merge branch 'maint-0.3.3'Nick Mathewson
2018-04-24Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-04-24Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-04-24Merge remote-tracking branch 'public/bug23693_031_redux' into maint-0.3.1Nick Mathewson
2018-04-23hs: Fix memleak in v3 on SIGHUPDavid Goulet
Fixes #25901 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-23Merge remote-tracking branch 'github/lazy_bucket_refill'Nick Mathewson