| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | bridge desc mgr: Add dormancy comment to effective_parallelism | Ian Jackson | 2022-11-23 | 1 | -0/+2 |
| | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/861#note_2856922 | ||||
| * | bridge desc mgr: Test dormancy | Ian Jackson | 2022-11-23 | 1 | -0/+42 |
| | | |||||
| * | bridge desc mgr: Honour specified dormancy | Ian Jackson | 2022-11-23 | 1 | -6/+13 |
| | | | | | Fixes #630 | ||||
| * | bridge desc mgr: Introduce effective_parallelism helper | Ian Jackson | 2022-11-23 | 1 | -5/+12 |
| | | |||||
| * | bridge desc mgr: Move set_dormancy to impl that is for mock too | Ian Jackson | 2022-11-23 | 1 | -6/+6 |
| | | |||||
| * | BridgeConfig: Replace all Arc<BridgeConfig> with BridgeConfig | Ian Jackson | 2022-11-22 | 2 | -5/+4 |
| | | | | | BridgeConfig is itself an Arc now, so these are redundant. | ||||
| * | Fix a couple of rustdoc issues. | Nick Mathewson | 2022-11-18 | 1 | -1/+2 |
| | | | | | These slipped in while nightly was broken. | ||||
| * | Fix a bunch of "needless borrow" warnings on nightly | Nick Mathewson | 2022-11-18 | 2 | -3/+3 |
| | | | | | | It looks like, despite a few false starts, they've got this warning right; there weren't any false positives. | ||||
| * | dirmgr Store: Have constructors take DirMgrStore | Ian Jackson | 2022-11-14 | 1 | -6/+13 |
| | | | | | | | | Now the Store is constructed by arti_client, solving the problem described here https://gitlab.torproject.org/tpo/core/arti/-/issues/631#note_2853665 but in a different way. | ||||
| * | dirmgr Store: Introduce DirMgrStore and use for BridgeDescMgr (fmt) | Ian Jackson | 2022-11-14 | 1 | -8/+1 |
| | | | | | rustfmt only, broken out to ease review. | ||||
| * | dirmgr Store: Introduce DirMgrStore and use for BridgeDescMgr | Ian Jackson | 2022-11-14 | 2 | -6/+33 |
| | | | | | We are going to change DirMgr's constructors to also take a DirMgrStore. | ||||
| * | dirmgr Store: Abolish redundant trait impl | Ian Jackson | 2022-11-14 | 2 | -109/+1 |
| | | |||||
| * | dirmgr Store: Use `**` syntax and deref to trait objects | Ian Jackson | 2022-11-14 | 2 | -34/+20 |
| | | | | | This will allow us to get rid of a needless trait impl. | ||||
| * | dirmgr Store: Move Send and 'static bounds to Store trait | Ian Jackson | 2022-11-14 | 1 | -2/+2 |
| | | | | | | | | | This seems tidier to me. (It saved a lot of typing when I was trying to make some complicated pub supertrait with sealed private supertrait, but apparently not now.) | ||||
| * | bridge descriptor dormancy: Accept the dormancy value | Ian Jackson | 2022-11-11 | 2 | -1/+11 |
| | | | | | But right now, don't do anything with it. That will come in a future MR. | ||||
| * | bridge descriptor dormancy: Add a TODO for this enum | Ian Jackson | 2022-11-11 | 1 | -0/+2 |
| | | |||||
| * | bridge descriptor dormancy: Define an enum and semantics | Ian Jackson | 2022-11-10 | 1 | -0/+39 |
| | | | | | This is part of #630. | ||||
| * | Merge branch 'bridge-error' into 'main' | Nick Mathewson | 2022-11-10 | 1 | -3/+2 |
| |\ | | | | | | | | | Use ErrorKind::TorAccessFailed for misbehaving bridges See merge request tpo/core/arti!842 | ||||
| | * | Use ErrorKind::TorAccessFailed for misbehaving bridges | Ian Jackson | 2022-11-08 | 1 | -3/+2 |
| | | | | | | | | | (Use semantic linefeed for the doc comment.) | ||||
| * | | Merge branch 'bdm-process-doc-test' into 'main' | Nick Mathewson | 2022-11-10 | 2 | -2/+100 |
| |\ \ | | | | | | | | | | | | | bridge descs: Add tests for process_document See merge request tpo/core/arti!841 | ||||
| | * | | bridge descs: Add tests for process_document | Ian Jackson | 2022-11-08 | 2 | -2/+100 |
| | |/ | |||||
| * | | Merge branch 'bdm-params' into 'main' | Nick Mathewson | 2022-11-10 | 1 | -1/+0 |
| |\ \ | | | | | | | | | | | | | Remove TODO re BridgeDescDownloadConfig defaults See merge request tpo/core/arti!839 | ||||
| | * | | Remove TODO re BridgeDescDownloadConfig defaults | Ian Jackson | 2022-11-08 | 1 | -1/+0 |
| | |/ | |||||
| * | | bridge desc: Drop a done TODO | Ian Jackson | 2022-11-08 | 1 | -1/+0 |
| | | | | | | | | | | | We have a separate BridgeDescMgr, rather than reusing DirMgr, so we will not be implementing BridgeDescProvider for DirMgr. | ||||
| * | | bridge desc: todo re config: weaken and reference a new ticket | Ian Jackson | 2022-11-08 | 1 | -3/+2 |
| |/ | |||||
| * | Merge branch 'store' into 'main' | Nick Mathewson | 2022-11-08 | 4 | -41/+463 |
| |\ | | | | | | | | | | | | | Persistently cache bridge descriptors Closes #619 See merge request tpo/core/arti!831 | ||||
| | * | bridge descs: Rename BridgeDescMgr from BridgeDescManager | Ian Jackson | 2022-11-08 | 2 | -15/+15 |
| | | | | | | | | | | | | | This is more consistent with our naming elsewhere. Suggested-by: Nick Mathewson <[email protected]> | ||||
| | * | bridge descs: Apply sensitive() to bridge identity in error log msg | Ian Jackson | 2022-11-08 | 1 | -1/+2 |
| | | | |||||
| | * | sqlite cache: Document reasoning about timestamps | Ian Jackson | 2022-11-08 | 1 | -2/+9 |
| | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/831#note_2851764 | ||||
| | * | bridge desc tests: Test caching and if-modified-since | Ian Jackson | 2022-11-04 | 1 | -2/+121 |
| | | | |||||
| | * | bridge desc tests: Break out queues_are_empty helper | Ian Jackson | 2022-11-04 | 1 | -2/+6 |
| | | | |||||
| | * | bridge desc tests: Provide a sqlite connection | Ian Jackson | 2022-11-04 | 1 | -2/+5 |
| | | | | | | | | | The current test case doesn't use this. | ||||
| | * | bridge desc: Implement storage functions at the DB layer | Ian Jackson | 2022-11-04 | 1 | -8/+67 |
| | | | |||||
| | * | bridge desc: Make Downloaded be Debug | Ian Jackson | 2022-11-04 | 1 | -0/+1 |
| | | | |||||
| | * | bridge desc: Implement cache reuse logic and if-modified-since | Ian Jackson | 2022-11-04 | 3 | -9/+195 |
| | | | | | | | | | | | | | | | | | | | | | | | | | This introduces the new API functions to Store. But currently they are all no-ops. So all this machinery doesn't actually do anything. Also, it changes the API to the mockable downloader, to allow it to support if-modified-since. So this isn't used either. But it is more convenient to do this all at once in BridgeDescManager, since care needs to be taken about the intraction between if-modified-since and the persistent cache. | ||||
| | * | bridge desc: Rename one more variable to text | Ian Jackson | 2022-11-04 | 1 | -1/+1 |
| | | | |||||
| | * | bridge desc: Catch panics in the download functionality | Ian Jackson | 2022-11-04 | 1 | -1/+8 |
| | | | |||||
| | * | bridge desc: Provide a Store to the bridge desc manager | Ian Jackson | 2022-11-04 | 3 | -16/+49 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use the one in the dirmgr. That means that our constructor now has to take a dirmgr. And, the dirmgr must have a circmgr. This is all rather odd, TBH. Add .. to the binding of the return values from setup, as future-proofing. The tests now need to provide a Store too. Make the sqlite::new_empty function pub(crate) so we can use it. We must retain the _db_tmp_dir, since when it goes away the tmp directory is deleted and the db goes readonly. | ||||
| | * | bridge desc tests: Apply tracing_test::traced_test | Ian Jackson | 2022-11-04 | 1 | -0/+2 |
| | | | | | | | | | This lets us see the log messages. They look fine, as it happens. | ||||
| * | | Merge branch 'store-yak-misc' into 'main' | eta | 2022-11-08 | 3 | -11/+34 |
| |\| | | | | | | | | | Small misc yaks for bridge descriptor persistence See merge request tpo/core/arti!828 | ||||
| | * | tor-dirmgr: impl AsRef<dyn Error> for Error | Ian Jackson | 2022-11-04 | 1 | -0/+7 |
| | | | | | | | | | This allows use with tor_error::Report. | ||||
| | * | dirmgr: Make store be in an Arc | Ian Jackson | 2022-11-04 | 1 | -2/+2 |
| | | | | | | | | | | | This will let us share it with the bridge descriptor manager. (As discussed with Nick.) | ||||
| | * | dirmgr sqlite store: Improve schema updates | Ian Jackson | 2022-11-04 | 1 | -9/+25 |
| | | | | | | | | | | | | | | | | | | | * Centralise applying the schema updates, in a closure * Make the schema update SQL texts be in an array so we can loop * Make the version update statement generic, not cloned-and-hacked This will make it possible to add another schema version without error-prone conditions etc. | ||||
| * | | Fix typos | Dimitris Apostolou | 2022-11-06 | 1 | -1/+1 |
| |/ | |||||
| * | bridgedesc: Rename "text" from "output" | Ian Jackson | 2022-11-03 | 1 | -5/+5 |
| | | | | | | | This was confusing, because it's the output of the donwload, but nowhere near the output of the whole process. And it's going to become even less so. | ||||
| * | bridgedesc: Make process_document into a free function | Ian Jackson | 2022-11-03 | 1 | -53/+67 |
| | | | | | It deserves this treatment, I think. | ||||
| * | bridgedesc: Introduce Downloaded | Ian Jackson | 2022-11-03 | 1 | -13/+17 |
| | | | | | | This gives names to things and makes things clearer, and this will be even more true in a moemnt. | ||||
| * | bridgedesc: download: Break out process_document | Ian Jackson | 2022-11-03 | 1 | -47/+54 |
| | | | | | We're going to want to reuse this for handling cached stuff. | ||||
| * | bridgedesc: Prepare Mockable trait for if-modified-since | Ian Jackson | 2022-11-03 | 2 | -6/+15 |
| | | |||||
| * | Run add_warnings. | Nick Mathewson | 2022-11-03 | 1 | -0/+1 |
| | | |||||
