| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | | | tor-rtmock: MockSleepProvider docs: Move example | Ian Jackson | 2023-10-05 | 2 | -73/+73 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This example demonstrates MockSleepRuntime, which we don't want to use in new tests. It's probably worth keeping it, though, to help with comprehension of existing tests. So move it. This does rather highlight the lack of good overall example/instructions for MockRuntime. | |||||
| | * | | | tor-rtmock: simple_time: Rename `wakers` to `futures` (fmt) | Ian Jackson | 2023-10-05 | 1 | -1/+4 | |
| | | | | | ||||||
| | * | | | tor-rtmock: simple_time: Rename `wakers` to `futures` | Ian Jackson | 2023-10-05 | 1 | -11/+11 | |
| | | | | | | | | | | | | | | | | | This is clearer, I think. | |||||
| | * | | | tor-rtmock: simple_time: Rename `pq` to `unready` | Ian Jackson | 2023-10-05 | 1 | -13/+13 | |
| | | | | | | | | | | | | | | | | | This is clearer, I think. | |||||
| | * | | | tor-rtmock: simple_time: Expand on advance and task ordering | Ian Jackson | 2023-10-05 | 1 | -2/+8 | |
| | | | | | ||||||
| | * | | | tor-rtmock: simple_time: Clarify/correct comments about invariant | Ian Jackson | 2023-10-05 | 1 | -2/+2 | |
| | | | | | ||||||
| | * | | | tor-rtmock: Add deprecation warning to MockSleepRuntime | Ian Jackson | 2023-10-05 | 1 | -1/+7 | |
| | | | | | ||||||
| | * | | | tor-rtmock: MockSleepProvider docs: Move deprecation discussion | Ian Jackson | 2023-10-05 | 1 | -32/+38 | |
| | | | | | | | | | | | | | | | | | | | | | The module-level docs here are less visible and also not where most of the other stuff was. | |||||
| | * | | | tor-rtmock: MockSleepProvider docs: Compare with SimpleMockTimeProvider | Ian Jackson | 2023-10-05 | 1 | -0/+22 | |
| | | | | | ||||||
| | * | | | tor-rtmock: simple_time: Clarify some things in time_until_next_timeout | Ian Jackson | 2023-10-05 | 1 | -0/+6 | |
| | | | | | ||||||
| | * | | | tor-rtmock: simple_time: Give formal names to the states | Ian Jackson | 2023-10-05 | 1 | -2/+21 | |
| | | | | | | | | | | | | | | | | | And introduce a table showing the situations. | |||||
| | * | | | tor-rtmock: simple_time: take() the waker when we wake | Ian Jackson | 2023-10-05 | 1 | -2/+5 | |
| | | | | | | | | | | | | | | | | | | | | | We don't need it any more; we won't call wake again. So, call .wake() rather than .wake_by_ref(). | |||||
| | * | | | tor-rtmock: Provide SimpleTimeProvider: clarify .sleep() innards | Ian Jackson | 2023-10-03 | 1 | -4/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Making the SleepFuture first means we don't call .wake_any() with the other invariants violated. This doesn't actually matter with the code as it stands, but it's less confusing this way. | |||||
| | * | | | tor-rtmock: MockRuntime: in advance_*, warn to stderr about looping | Ian Jackson | 2023-10-03 | 1 | -1/+21 | |
| | | | | | | | | | | | | | | | | | | | | | This helped me diagnose https://gitlab.torproject.org/tpo/core/arti/-/issues/1040 | |||||
| | * | | | tor-rtmock: Break out advance_inner | Ian Jackson | 2023-10-03 | 1 | -10/+31 | |
| | | | | | | | | | | | | | | | | | We're going to want to add something to it. | |||||
| | * | | | tor-rtmock: Add a deprecation warning to MockSleepProvider | Ian Jackson | 2023-10-03 | 2 | -0/+14 | |
| | | | | | ||||||
| | * | | | tor-rtmock: Abolish deprecated Runtime::advance() | Ian Jackson | 2023-10-03 | 3 | -19/+2 | |
| | | | | | | | | | | | | | | | | | | | | | Now we're making breaking changes anyway, in or mock crate, it is a convenient time to get rid of this. | |||||
| | * | | | tor-rtmock: Fix doc refs to advance_* | Ian Jackson | 2023-10-03 | 1 | -2/+2 | |
| | | | | | ||||||
| | * | | | tor-rtmock: Rename MockRuntime::jump_to to jump_wallclock | Ian Jackson | 2023-10-03 | 3 | -3/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | This was named after the method from MockSleepRuntime. The name is confusing because it seems to imply it might do something to the monotonic time. | |||||
| | * | | | tor-rtmock: Abolish just-introduced confusing type alias (fmt) | Ian Jackson | 2023-10-03 | 1 | -1/+1 | |
| | | | | | ||||||
| | * | | | tor-rtmock: Abolish just-introduced confusing type alias | Ian Jackson | 2023-10-03 | 1 | -8/+8 | |
| | | | | | ||||||
| | * | | | tor-rtmock: Switch MockRuntime to SimpleMockSleepProvider | Ian Jackson | 2023-10-03 | 5 | -20/+20 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For now we do this by changing the meaning of the name `MockSleepProvider` in runtime.rs. This is a bodge to reduce noise in this diff. Consequences at call sites: * If the type is named somehow, the other type must be used. * SimpleMockTimeProvider calls it jump_wallclock rather than jump_to, which is IMO a better name. (MockRuntime will change in a moment.) * SimpleMockTimeProvider's advance() function isn't async and doesn't yield. But none of the call sites actually mind that. | |||||
| | * | | | tor-rtmock: Provide SimpleTimeProvider | Ian Jackson | 2023-10-03 | 4 | -0/+350 | |
| | | | | | ||||||
| | * | | | tor-rtmock: Add priority-queue dependency | Ian Jackson | 2023-10-03 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For our time provider we want a priority queue that lets us look up entries and delete them. std's Heap doesn't do that. priority-queue has the API we need and reasonable stats etc, and is maintained. It has some IMO-tolerable licence wrinkles. | |||||
| | * | | | tor-rtmock: Drop some obsolete caveats | Ian Jackson | 2023-10-03 | 1 | -7/+2 | |
| | | | | | | | | | | | | | | | | | Nowadays there are methods for this. | |||||
| * | | | | Merge branch 'launch_onion_proxies' into 'main' | Nick Mathewson | 2023-10-05 | 5 | -7/+102 | |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | arti: Write the minimal code needed to launch onion proxies. See merge request tpo/core/arti!1644 | |||||
| | * | | | | arti: Lower some over-broad #allows in onion_proxy.rs | Nick Mathewson | 2023-10-05 | 1 | -4/+2 | |
| | | | | | | ||||||
| | * | | | | arti: Actually launch the onion service code. | Nick Mathewson | 2023-10-05 | 1 | -0/+9 | |
| | | | | | | ||||||
| | * | | | | arti: functions to configure and launch actual onion service proxies. | Nick Mathewson | 2023-10-05 | 1 | -3/+82 | |
| | | | | | | ||||||
| | * | | | | hss: Mark RendCircConnector as Send+Sync | Nick Mathewson | 2023-10-04 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | This makes some other futures Send+Sync, which lets us spawn them. | |||||
| | * | | | | hss: Give Config a nickname accessor. | Nick Mathewson | 2023-10-04 | 1 | -0/+7 | |
| | | | | | | ||||||
| | * | | | | hsrproxy: add a note about a future warning. | Nick Mathewson | 2023-10-04 | 1 | -0/+2 | |
| | | | | | | ||||||
| * | | | | | Merge branch 'clarify2' into 'main' | gabi-250 | 2023-10-04 | 1 | -3/+9 | |
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | tor-hsservice: ipt_set: Docs clarifications See merge request tpo/core/arti!1647 | |||||
| | * | | | | | tor-hsservice: ipt_set: Docs clarifications | Ian Jackson | 2023-10-04 | 1 | -3/+9 | |
| | |/ / / / | | | | | | | | | | | | | | | | Apropos a conversation in !1645 | |||||
| * | | | | | tor-hsservice: Remove unnecessary let binding. | Gabriela Moldovan | 2023-10-04 | 1 | -4/+2 | |
| | | | | | | ||||||
| * | | | | | tor-hsservice: Remove a now-outdated TODO. | Gabriela Moldovan | 2023-10-04 | 1 | -23/+0 | |
| | | | | | | ||||||
| * | | | | | tor-hsservice: Share an IptsPublisherUploadView with each upload task. | Gabriela Moldovan | 2023-10-04 | 1 | -21/+50 | |
| |/ / / / | | | | | | | | | | | | | | | | | | | | | This enables us to specify a more accurate `worst_case_end` publish time. Closes #1050 | |||||
| * | | | | tor-hsservice: Fix semantic conflict. | Gabriela Moldovan | 2023-10-04 | 1 | -3/+1 | |
| | | | | | | | | | | | | | | | | | | | | | This fixes a compile error that resulted from a semantic conflict between !1634 and !1638. | |||||
| * | | | | Merge branch 'configure_onion_service' into 'main' | Nick Mathewson | 2023-10-03 | 16 | -29/+261 | |
| |\ \ \ \ | | |/ / | |/| | | | | | | | | | | Initial work on top-level onion service configuration See merge request tpo/core/arti!1638 | |||||
| | * | | | Add/clarify comments about name duplication. | Nick Mathewson | 2023-10-03 | 2 | -1/+6 | |
| | | | | | ||||||
| | * | | | arti: make sure nicknames in builders match (or are absent) | Nick Mathewson | 2023-10-03 | 1 | -7/+16 | |
| | | | | | ||||||
| | * | | | arti: Fix up the example config to use the new onion_services format. | Nick Mathewson | 2023-10-03 | 1 | -6/+5 | |
| | | | | | ||||||
| | * | | | arti: in onion service builder, rename "transports" to "services" | Nick Mathewson | 2023-10-03 | 1 | -4/+3 | |
| | | | | | | | | | | | | | | | | | The old name was a copy-paste error. | |||||
| | * | | | arti: Make onion_services serialize as a map. | Nick Mathewson | 2023-10-03 | 3 | -1/+47 | |
| | | | | | | | | | | | | | | | | | This lets us write `[onion_services.allium_cepa]`. | |||||
| | * | | | arti: Make onion_service configuration option plural | Nick Mathewson | 2023-10-03 | 2 | -5/+5 | |
| | | | | | ||||||
| | * | | | hss: Rename the "name" config field to "nickname". | Nick Mathewson | 2023-10-03 | 4 | -4/+4 | |
| | | | | | ||||||
| | * | | | Note that we *do* need to actually test the onion service config. | Ian Jackson | 2023-10-03 | 1 | -1/+1 | |
| | | | | | ||||||
| | * | | | hsrproxy: fix a rustdoc link. | Nick Mathewson | 2023-10-03 | 1 | -1/+1 | |
| | | | | | ||||||
| | * | | | arti: Add a list of [[onion_service]]s to the config. | Nick Mathewson | 2023-10-03 | 3 | -2/+91 | |
| | | | | | | | | | | | | | | | | | There are no tests for parsing it yet. | |||||
| | * | | | hss: Temporarily disable POW config items. | Nick Mathewson | 2023-10-03 | 1 | -4/+5 | |
| | | | | | | | | | | | | | | | | | | | | | We plan to ship without them at first, so we may as well remove them. | |||||
