| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | bridge descriptors: logging: Log addition and removal (fmt) | Ian Jackson | 2022-11-03 | 1 | -12/+20 | |
| | | | | | Worsify formatting as demanded by rustfmt. | |||||
| * | bridge descriptors: logging: Log addition and removal | Ian Jackson | 2022-11-03 | 1 | -8/+31 | |
| | | | | | | This involves breaking the calls to `new_bridges.remove` into a helper that does the logging. | |||||
| * | bridge descriptors: logging: Log download start and outcome | Ian Jackson | 2022-11-03 | 1 | -0/+6 | |
| | | ||||||
| * | bridge descriptors tests: Test set_bridges more thoroughly | Ian Jackson | 2022-11-03 | 1 | -0/+34 | |
| | | | | | | | | | Prior to the previous commit, set_bridges would malfunction if there were bridges which where (i) in current (ii) in queued or running (iii) in the new bridge set. This test failed then and passes now. | |||||
| * | bridge descriptors: Rewrite set_bridges | Ian Jackson | 2022-11-03 | 1 | -18/+12 | |
| | | | | | | | | | This was fundamentally confused and irregular. Now it is more regular: it does the same things to all the elements of Tracked, and a simple filtering on current. This fixes a bug, for which I'm about to add a test case. | |||||
| * | bridge descriptors tests: Add another couple of test cases | Ian Jackson | 2022-11-03 | 1 | -1/+31 | |
| | | ||||||
| * | bridge descriptors tests: stream_drain_ready returns event count | Ian Jackson | 2022-11-03 | 1 | -1/+4 | |
| | | | | | We'll use this in a moment. | |||||
| * | bridge descriptors tests: Break out bad_bridge helper function | Ian Jackson | 2022-11-03 | 1 | -7/+7 | |
| | | ||||||
| * | bridge descriptors: Change default max_refetch | Ian Jackson | 2022-11-03 | 2 | -2/+2 | |
| | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/820#note_2850269 | |||||
| * | bridge descriptors: Add clarification about bridge states | Ian Jackson | 2022-11-03 | 1 | -0/+3 | |
| | | ||||||
| * | bridge descriptors: Improve and fix docs for consider_launching | Ian Jackson | 2022-11-03 | 1 | -1/+6 | |
| | | ||||||
| * | bridge descriptors: Add comments where StateGuard is dropped | Ian Jackson | 2022-11-03 | 1 | -0/+8 | |
| | | ||||||
| * | bridge descriptors: Document `changed` and `earliest_timeout` Options | Ian Jackson | 2022-11-03 | 1 | -0/+5 | |
| | | ||||||
| * | bridge descriptors: Document updates argument to timeout_task | Ian Jackson | 2022-11-03 | 1 | -0/+6 | |
| | | ||||||
| * | bridge descriptors: Tests | Ian Jackson | 2022-11-03 | 2 | -0/+267 | |
| | | ||||||
| * | bridge descriptors: Provide a consistency check function | Ian Jackson | 2022-11-03 | 1 | -0/+196 | |
| | | | | | | This is really part of the tests, but I put it here so that it can be compiled-in if someone wants it during debugging. | |||||
| * | bridge descriptors: Provide an implementation of BridgeDescProvider | Ian Jackson | 2022-11-03 | 2 | -0/+1097 | |
| | | | | | Tests will come in a moment. | |||||
| * | tor-dirmgr: impl Default for FlagPublisher | Ian Jackson | 2022-10-27 | 1 | -0/+6 | |
| | | ||||||
| * | tor-dirmgr: impl FlagEvent for BridgeDescEvent | Ian Jackson | 2022-10-27 | 1 | -0/+6 | |
| | | ||||||
| * | Fix clippy false positive | Ian Jackson | 2022-10-25 | 1 | -0/+5 | |
| | | ||||||
| * | FlagEvent trait: Implement using macros | Ian Jackson | 2022-10-25 | 2 | -14/+62 | |
| | | | | | | | | | | | | The explicit list of variant names, that needs to be kept in sync, and is a test failure semver break hazard, is now gone. All the necessary code is now generated automatically, and cannot be wrong. I want this because I find myself wanting to add a second implementation of FlagEvent, for another type. | |||||
| * | tor-dirclient: Make RequestFailed its own error type | Ian Jackson | 2022-10-20 | 1 | -5/+5 | |
| | | | | | | | | We're going to have functions on Response that fail by returning only one of these. Sadly this diff is quite noisy. | |||||
| * | tor-dirclient Response: Rename output methods | Ian Jackson | 2022-10-20 | 1 | -1/+1 | |
| | | | | | | These don't check errors and are therefore quite hazardous. I'm going to introduce a more cooked version in a moment. | |||||
| * | cargo fmt to remove blank lines | Ian Jackson | 2022-10-12 | 1 | -1/+0 | |
| | | | | | | | | Apparently cargo fmt doesn't like these, which my perl rune didn't delete. This commit is precisely the result of `cargo fmt`. | |||||
| * | Replace all README copies in src/lib.rs with includes | Ian Jackson | 2022-10-12 | 1 | -51/+1 | |
| | | | | | | | | | The feature we want is `#[doc = include_str!("README.md")]`, which is stable since 1.54 and our MSRV is now 1.56. This commit is precisely the result of the following Perl rune: perl -i~ -0777 -pe 's{(^//!(?!.*\@\@).*\n)+}{#![doc = include_str!("../README.md")]\n}m' crates/*/src/lib.rs | |||||
| * | Mark all bridge and pt features as experimental for now. | Nick Mathewson | 2022-09-29 | 1 | -0/+26 | |
| | | | | | | | Also, document the features. Closes #588. | |||||
| * | GuardMgr/DirMgr: Add APIs for bridge descriptor lists | Nick Mathewson | 2022-09-26 | 1 | -0/+1 | |
| | | ||||||
| * | fix clippy::needless_borrow | trinity-1686a | 2022-09-10 | 1 | -1/+1 | |
| | | ||||||
| * | fix clippy::unwrap_used and old TODO for msrv 1.56 | trinity-1686a | 2022-09-10 | 1 | -9/+6 | |
| | | ||||||
| * | `TaskSchedule`: give error on `sleep*()` if last handle is dropped | Nick Mathewson | 2022-09-07 | 3 | -4/+14 | |
| | | | | | | | | | | | | | | | | | | | This fixes an busy-loop. When the last `TaskHandle` on a `TaskSchedule` is dropped, the schedule is permanently canceled: whatever operation it was scheduling should no longer be performed. But our code was broken: the `sleep()` and `sleep_until_wallclock()` functions don't verify whether the handles are dropped or not. This breakage caused an CPU-eating busy-loop in `sleep_until_wallclock`. With this patch, we now return a `Result<(), SleepError>` from these functions. Fixes #572. | |||||
| * | Use anonymize_home() when displaying various messages. | Nick Mathewson | 2022-08-31 | 1 | -1/+2 | |
| | | | | | Closes #555 | |||||
| * | add feature annotation not added by doc_auto_cfg | trinity-1686a | 2022-08-24 | 1 | -0/+1 | |
| | | ||||||
| * | enable doc_auto_cfg feature on every crate when documenting for docs.rs | trinity-1686a | 2022-08-24 | 1 | -0/+1 | |
| | | ||||||
| * | Decrease the lifetimes for storing descriptors. | Nick Mathewson | 2022-08-09 | 1 | -6/+29 | |
| | | | | | | | | These values were chosen experimentally, based on those from Tor, to save disk space without wasting much bandwidth. Closes #527. | |||||
| * | Finish implementation of params() for DirMgr. | Nick Mathewson | 2022-08-02 | 1 | -0/+36 | |
| | | | | | | | | Now it maintains an up-to-date set of default parameters to be handed out if there is no directory. Closes #528. | |||||
| * | tor-dirmgr: Remove opt_netdir entirely. | Nick Mathewson | 2022-07-26 | 2 | -11/+8 | |
| | | | | | Its existence tended to hide bugs, and was just asking for trouble. | |||||
| * | Remove unused DirMgr::netdir method, make opt_netdir private. | Nick Mathewson | 2022-07-26 | 1 | -11/+1 | |
| | | ||||||
| * | Add new APIs to NetDirProvider to better support timeliness. | Nick Mathewson | 2022-07-26 | 1 | -3/+24 | |
| | | | | | | | | | | | | | | | | | | Over the years we've found that most callers who want a netdir want what C Tor calls a "reasonably live" network directory: One that is not expired by too much, or too far in the future. But a few want a _strictly_ live directory: one that says it is valid now, with no tolerances. And a few want _any_ directory, no matter how expired it is. This commit adds net methods to NetDirProvider to provide these directories. I think that most use cases will want to explicitly think about what kind of directory they want, so I've made `netdir` the simplest method. I might remove `timely_netdir` by the end of this branch; see TODO comments. Part of #518. | |||||
| * | Rename DirSkewTolerance to DirTolerance | Nick Mathewson | 2022-07-22 | 3 | -9/+15 | |
| | | | | | | | This name is more accurate because we aren't only dealing with clock skew here: we're also trying to tolerate the case where the authorities fail to reach consensus for a while. | |||||
| * | Merge branch 'dirmgr_error_cleanup' into 'main' | Nick Mathewson | 2022-07-18 | 3 | -61/+84 | |
| |\ | | | | | | | | | | | | | Clean up some errors in tor-dirmgr Closes #521 See merge request tpo/core/arti!628 | |||||
| | * | dirmgr: Add a helper to create LockFile errors. | Nick Mathewson | 2022-07-18 | 2 | -8/+9 | |
| | | | ||||||
| | * | dirmgr: Make UnrecognizedSchema more helpful | Nick Mathewson | 2022-07-14 | 2 | -6/+14 | |
| | | | ||||||
| | * | dirmgr: Add an instance of BadUtf8InCache | Nick Mathewson | 2022-07-14 | 1 | -2/+1 | |
| | | | ||||||
| | * | dirmgr: Clarify disk IO errors. | Nick Mathewson | 2022-07-14 | 3 | -33/+48 | |
| | | | ||||||
| | * | dirmgr: style edits to error messages. | Nick Mathewson | 2022-07-14 | 1 | -22/+22 | |
| | | | ||||||
| * | | Fix illegal formatting in cache filenames | feelingnothing | 2022-07-14 | 1 | -1/+1 | |
| |/ | ||||||
| * | Merge branch 'clippy' into 'main' | Ian Jackson | 2022-06-24 | 1 | -0/+3 | |
| |\ | | | | | | | | | Fix clippy nightly again See merge request tpo/core/arti!603 | |||||
| | * | Run maint/add_warning crates/*/src/{lib,main}.rs | Ian Jackson | 2022-06-23 | 1 | -0/+3 | |
| | | | | | | | | | Update all lint blocks | |||||
| * | | Merge branch 'dirmgr' into 'main' | Nick Mathewson | 2022-06-24 | 1 | -53/+49 | |
| |\ \ | | | | | | | | | | | | | | | | | | | dirmgr: followups to !587, mostly using iterators Closes #468 See merge request tpo/core/arti!599 | |||||
| | * | | dirmgr: Use ... .find().is_none() rather than clippy's suggestion | Ian Jackson | 2022-06-23 | 1 | -2/+4 | |
| | | | | ||||||
